You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
@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.
iabudiab
changed the title
HTMLKit erroneous HTML serialization and entity decoding
HTMLKit erroneous HTMLText serialization and entity decoding
Nov 6, 2017
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.
The text was updated successfully, but these errors were encountered: