Skip to content

Replacement for normalizeWhitespace option? #3548

Answered by fb55
andersweinstein asked this question in Q&A
Discussion options

You must be logged in to vote

The reason this feature was removed was that it didn't cover a lot of edge-cases in HTML. Eg. <pre> tags should not have their white space compressed.

You probably want to use a library such as html-minifier-terser that properly implements white space compression.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fb55
Comment options

You must be logged in to vote
0 replies
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