rss-parser
rss-parser copied to clipboard
decodeHTML is not a function with Angular optimizer in 3.9.0 or higher
Not sure whom to blame:
Angular 7 prod mode (tree shaking) rss-parser 3.8.0 - all is fine rss-parser 3.9.0 or higher - i.decodeHTML is not a function It happens at entities.decodeHTML:
utils.getSnippet = function(str) {
return entities.decodeHTML(utils.stripHtml(str)).trim();
}
Looking in the debugger, decodeHTML is indeed missing in entities. At first glance it is not obvious what causes the function shaking, but it is some change from 3.8 to 3.9.