ZMarkupParser icon indicating copy to clipboard operation
ZMarkupParser copied to clipboard

`stripper()` function doesn't remove HTML entities

Open cameroncooke opened this issue 2 years ago • 0 comments

Given the following HTML string <b>Tea &amp; coffee</b>:

when rendered we get: "Tea & coffee"

when calling the stripper() method and rendered we get: "Tea &amp; coffee"

I would expect the HTML entities to be decoded, so when rendered: "Tea & coffee"

I can't see any use case where I would want an NSAttributedString that has been stripped of HTML formatting to show HTML entities which are by definition HTML.

cameroncooke avatar Mar 11 '24 15:03 cameroncooke