Don't double-HTML-encode plaintext when converting to HTML (e.g., when using browser pane context menu option to create Zotero note)

This commit is contained in:
Dan Stillman 2011-04-13 09:17:54 +00:00
parent ab9ae36135
commit 64d603e646

View file

@ -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/>')