Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stripper() function doesn't remove HTML entities #51

Closed
cameroncooke opened this issue Mar 11, 2024 · 0 comments · Fixed by #65
Closed

stripper() function doesn't remove HTML entities #51

cameroncooke opened this issue Mar 11, 2024 · 0 comments · Fixed by #65
Labels
2024-04 bug Something isn't working

Comments

@cameroncooke
Copy link

cameroncooke commented Mar 11, 2024

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 cameroncooke changed the title stripper() function removes HTML entities which is nearly always not what you want stripper() function doesn't remove HTML entities Mar 11, 2024
@zhgchgli0718 zhgchgli0718 added the bug Something isn't working label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2024-04 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants