From ae7429fb281fe507253fadd683eb064413595d58 Mon Sep 17 00:00:00 2001 From: Zalmoxisus Date: Sun, 19 Oct 2014 04:29:32 +0400 Subject: [PATCH] It is still good to escape html tags not only for #177 --- util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '>'); }; /**