diff --git a/util.js b/util.js index 652b5b14c..7025a3af2 100644 --- a/util.js +++ b/util.js @@ -44,7 +44,7 @@ var Util = (function (my) { * Escapes the given text. */ my.escapeHtml = function (unsafeText) { - return $('
').text(unsafeText).html(); + return $('
').text(unsafeText).text(); }; /**