Skip to content

Does sanitize-html convert "messy" HTML (which you find across the web) into standard HTML? #641

Answered by boutell
lancejpollard asked this question in Q&A
Discussion options

You must be logged in to vote

sanitize-html uses htmlparser2 to parse the document, so you're going to get htmlparser2's interpretation of the document, for good or ill (generally for good in my experience, I'm not casting shade).

I think that answers the question, but if you have further questions about it you can check into the htmlparser2 documentation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lancejpollard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants