commit 64d603e646882259213e2766105fa17e936507f9
parent ab9ae36135f0e9e34739fc99d6832341734f35a0
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 13 Apr 2011 09:17:54 +0000
Don't double-HTML-encode plaintext when converting to HTML (e.g., when using browser pane context menu option to create Zotero note)
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js
@@ -164,7 +164,6 @@ Zotero.Utilities = {
}
// \n\n => <p>, \n => <br/>
else {
- str = Zotero.Utilities.htmlSpecialChars(str);
str = '<p>'
+ str.replace(/\n\n/g, '</p><p>')
.replace(/\n/g, '<br/>')