diff --git a/ckeditor/plugins/customCodeHighlighter/plugin.js b/ckeditor/plugins/customCodeHighlighter/plugin.js index 2f191ee5ef991ceeb303e302d06a41cdb8495365..455335473b57f5ef8c793ecc490d16771be36cd4 100644 --- a/ckeditor/plugins/customCodeHighlighter/plugin.js +++ b/ckeditor/plugins/customCodeHighlighter/plugin.js @@ -35,7 +35,11 @@ CKEDITOR.plugins.add('customCodeHighlighter', { }, highlighter: function (code, language, callback) { // Here we are highlighting the code and returning it. - callback(code); + /** + * Note: Since we're not adding any highlighting we have to + * encode the html so that the html is not being run. + */ + callback(CKEDITOR.tools.htmlEncode(code)); } }); editor.plugins.codesnippet.setHighlighter(highlighter);