diff --git a/manifest.json b/manifest.json index 02dbe9b..db7fbbb 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "RSSPreview", - "version": "3.20.2", + "version": "3.21", "author": "Aurelien David", "homepage_url": "https://github.com/aureliendavid/rsspreview", diff --git a/rsspreview.js b/rsspreview.js index b4a09bd..8765605 100644 --- a/rsspreview.js +++ b/rsspreview.js @@ -169,12 +169,14 @@ //basically removes html content if there is some //only do it if there's a tag to avoid doing it when text titles cointain a '&' //(which can be caught but still displays an error in console, which is annoying) - if (et[i].innerText.indexOf('<') >= 0) { + if (et[i].innerText.indexOf('<') >= 0 || et[i].innerText.indexOf('&')) { + console.log(et[i].innerText); let tmp = document.createElement('span'); try { tmp.innerHTML = et[i].innerText; et[i].innerText = tmp.textContent; } catch (e) { + // if not parsable, display as text console.error(e); console.log(et[i].innerText); }