Skip to content

Commit

Permalink
Replace p tag with two line breaks in ZU.cleanTags (zotero#1465)
Browse files Browse the repository at this point in the history
  • Loading branch information
zuphilip authored and dstillman committed Mar 19, 2018
1 parent a659c6c commit 0bb2bdc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chrome/content/zotero/xpcom/utilities.js
Expand Up @@ -299,6 +299,7 @@ Zotero.Utilities = {
}

x = x.replace(/<br[^>]*>/gi, "\n");
x = x.replace(/<\/p>/gi, "\n\n");
return x.replace(/<[^>]+>/g, "");
},

Expand Down

0 comments on commit 0bb2bdc

Please sign in to comment.