From 7008e88314b6d86e640e7e96e4886bc0d6e8492f Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Sat, 9 Aug 2014 20:28:54 +0200 Subject: [PATCH] prevent   insertion, closes #112 --- isso/js/app/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/isso/js/app/utils.js b/isso/js/app/utils.js index f5f4992..2e3943a 100644 --- a/isso/js/app/utils.js +++ b/isso/js/app/utils.js @@ -57,7 +57,8 @@ define(["app/i18n"], function(i18n) { var _ = document.createElement("div"); _.innerHTML = html.replace(/

<\/div>/gi, '
') .replace(/
/gi,'
') - .replace(/
/gi, '\n'); + .replace(/
/gi, '\n') + .replace(/ /gi, ' '); return _.textContent.trim(); };