From 6ca9151eb27dfdec0300e60dedbce4af246b4fba Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Sun, 8 Mar 2015 19:19:43 +0300 Subject: [PATCH] fix apostrophe in URLs (currently it is displayed as ') --- js/twister_formatpost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/twister_formatpost.js b/js/twister_formatpost.js index 5e271c9..c524a3f 100644 --- a/js/twister_formatpost.js +++ b/js/twister_formatpost.js @@ -208,7 +208,7 @@ function htmlFormatMsg( msg, output, mentions ) { if( space != -1 ) url = tmp.substring(0,space); else url = tmp; if( url.length ) { msg = tmp.substr(String(url).length); - url = url.replace(/&/g, '&'); + url = reverseHtmlEntities(url); var extLinkTemplate = $("#external-page-link-template").clone(true); extLinkTemplate.removeAttr("id");