diff --git a/util.js b/util.js index 7025a3af2..c54425444 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).text(); + return unsafeText.replace(//g, '>'); }; /**