diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-10-25 11:27:52 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-10-25 11:27:52 +0200 |
commit | cf8ad726b11fb6d76bcef22196c4b6b3f32e6d1f (patch) | |
tree | 2902c722443954f5a294b48f42a7ad6349cb48c3 /modules | |
parent | 61f50326171ed46b0b725fd7e3eb417ccc9a2b5b (diff) |
Also replace < and > in quotesgrab
Diffstat (limited to 'modules')
-rw-r--r-- | modules/quotesgrab/quotesgrab.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/quotesgrab/quotesgrab.js b/modules/quotesgrab/quotesgrab.js index 6b3b068..37f44e6 100644 --- a/modules/quotesgrab/quotesgrab.js +++ b/modules/quotesgrab/quotesgrab.js @@ -19,6 +19,8 @@ function parsequoteshtml(html){ html.slice(idx,idx2) .replace(/<\/?div[^>]*>/g,"") .replace(/<br>/g,"\n") + .replace(/>/g,">") + .replace(/</g,"<") .replace(/"/g,'"') .replace(/&/g,"&") .replace(/&#x([0-9a-f][0-9a-f]);/gi,function(match,p1){ |