rss-parser icon indicating copy to clipboard operation
rss-parser copied to clipboard

decodeHTML is not a function with Angular optimizer in 3.9.0 or higher

Open fedorl opened this issue 3 years ago • 0 comments

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.

fedorl avatar Sep 20 '21 00:09 fedorl