diff --git a/assets/javascripts/initializers/discourse-math.js.es6 b/assets/javascripts/initializers/discourse-math.js.es6 index 7d05f32..67336c3 100644 --- a/assets/javascripts/initializers/discourse-math.js.es6 +++ b/assets/javascripts/initializers/discourse-math.js.es6 @@ -52,14 +52,14 @@ function decorate(elem, isPreview) { `<${tag} style="display: none;">` ); $math = $mathWrapper.children(); - $math.html($elem.text()); + $math.text($elem.text()); $elem.after($mathWrapper); } else if ($elem.hasClass("asciimath")) { $mathWrapper = $( `` ); $math = $mathWrapper.children(); - $math.html($elem.text()); + $math.text($elem.text()); $elem.after($mathWrapper); }