Closed dsanghan closed 6 years ago
@dsanghan Hey there! I'll take a look at this as soon as I get home. I'll keep you posted.
@dsanghan Hey again! It's a 🐛 But don't worry, I've already fixed it and a new version is being released. Thanks a lot for reporting this 👍
I've also revisited all the other serialization methods and guess what? HTMLElement
suffers from the same bug.
I'll close this once the code is pushed and released.
Let's say you have the following html:
Then on:
and printing out the html via
doc.rootElement.outerHTML
you get partially decoded entities:<html><head></head><body> <div><example></div> </body></html>
where<
is left as is, and>
is decoded.Not sure what the correct thing to do here is.