Closed cossssmin closed 4 years ago
Here's the result of using these in the parser.js
test from PostHTML:
Found the breaking change in https://github.com/fb55/htmlparser2/commit/8ac01e0ed0950883f021b063ba0507fbae52252e, decodeEntities
is now true
by default - disabling it works as before.
Strange, but the documents say that by default false
https://github.com/fb55/htmlparser2/wiki/Parser-options#option-decodeentities
Yes, they probably forgot to update it 🤷♂️
Yes, they probably forgot to update it 🤷♂️
That's spot on, thanks for flagging :)
I've noticed that, starting with
0.5.1
, HTML entities are being converted.This is unexpected and in my case (Maizzle) breaks HTML emails.
For example, this:
... is output as:
Here's another example:
... results in:
These should stay as they are and should not be converted. Is there something users can do about it, or must it be handled in core?