dsh-rss 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/lib/parser.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/parser.js
CHANGED
|
@@ -38,7 +38,9 @@ function stripHtml(html) {
|
|
|
38
38
|
if (!html)
|
|
39
39
|
return '';
|
|
40
40
|
return html
|
|
41
|
-
|
|
41
|
+
// Stop at another opening bracket: unmatched '<' must never rescan the
|
|
42
|
+
// entire remainder for each position and synchronously stall the Host.
|
|
43
|
+
.replace(/<[^<>]*>/g, ' ')
|
|
42
44
|
.replace(/ /gi, ' ')
|
|
43
45
|
.replace(/&/gi, '&')
|
|
44
46
|
.replace(/</gi, '<')
|