diff options
author | alecpl <alec@alec.pl> | 2011-11-28 09:03:27 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-11-28 09:03:27 +0000 |
commit | 77449d011b2367a9f3d7bb179534aa09865aa26e (patch) | |
tree | 20a299715c627cecdc2f7247056dde120748c6a7 /program/js | |
parent | 2a3e02769d2014038675a5d8ddf18d1dba87bf2f (diff) |
- Applied fixes from trunk up to r5498
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 7 |
1 files changed, 5 insertions, 2 deletions
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 ? '<pre>'+plainText+'</pre>' : ''); + + plain = plain.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); + $('#'+id).val(plain ? '<pre>'+plain+'</pre>' : ''); + this.set_busy(false, null, lock); }; |