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

Environment-independent method to get the text content of HTML #2979

Open
RunDevelopment opened this issue Jul 2, 2021 · 0 comments
Open

Comments

@RunDevelopment
Copy link
Member

Motivation
In #2977, I added a pretty hacky way to get the text content of an HTML string. This was necessary because the method has to work in both browsers and NodeJS and should behave consistently across environments.

Description
Add a method to get the text content of an HTML string. It has to be:

  1. Safe: No script execution or left-over tags
  2. Correct: No left-over tags or entities
  3. Consistent: Same result in all browsers/environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant