From cf8ad726b11fb6d76bcef22196c4b6b3f32e6d1f Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Tue, 25 Oct 2016 11:27:52 +0200 Subject: Also replace < and > in quotesgrab --- modules/quotesgrab/quotesgrab.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/quotesgrab') 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(/
/g,"\n") + .replace(/>/g,">") + .replace(/</g,"<") .replace(/"/g,'"') .replace(/&/g,"&") .replace(/&#x([0-9a-f][0-9a-f]);/gi,function(match,p1){ -- cgit v1.2.3-70-g09d2