From 77449d011b2367a9f3d7bb179534aa09865aa26e Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 28 Nov 2011 09:03:27 +0000 Subject: - Applied fixes from trunk up to r5498 --- program/js/app.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'program/js') diff --git a/program/js/app.js b/program/js/app.js index 6c0d2cd8d..8ffcf93af 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -5743,10 +5743,13 @@ function rcube_webmail() }); }; - this.plain2html = function(plainText, id) + this.plain2html = function(plain, id) { var lock = this.set_busy(true, 'converting'); - $('#'+id).val(plainText ? '
'+plainText+'
' : ''); + + plain = plain.replace(/&/g, '&').replace(//g, '>'); + $('#'+id).val(plain ? '
'+plain+'
' : ''); + this.set_busy(false, null, lock); }; -- cgit v1.2.3