summaryrefslogtreecommitdiff
path: root/modules/quotesgrab
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-10-25 11:27:52 +0200
committertomsmeding <tom.smeding@gmail.com>2016-10-25 11:27:52 +0200
commitcf8ad726b11fb6d76bcef22196c4b6b3f32e6d1f (patch)
tree2902c722443954f5a294b48f42a7ad6349cb48c3 /modules/quotesgrab
parent61f50326171ed46b0b725fd7e3eb417ccc9a2b5b (diff)
Also replace < and > in quotesgrab
Diffstat (limited to 'modules/quotesgrab')
-rw-r--r--modules/quotesgrab/quotesgrab.js2
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(/&gt;/g,">")
+ .replace(/&lt;/g,"<")
.replace(/&quot;/g,'"')
.replace(/&amp;/g,"&")
.replace(/&#x([0-9a-f][0-9a-f]);/gi,function(match,p1){