You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the following HTML string <b>Tea & coffee</b>:
when rendered we get:
"Tea & coffee"
when calling the stripper() method and rendered we get:
"Tea & 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.
The text was updated successfully, but these errors were encountered:
cameroncooke
changed the title
stripper() function removes HTML entities which is nearly always not what you wantstripper() function doesn't remove HTML entities
Mar 11, 2024
Given the following HTML string
<b>Tea & coffee</b>
:when rendered we get:
"Tea & coffee"
when calling the
stripper()
method and rendered we get:"Tea & 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.The text was updated successfully, but these errors were encountered: