TobiasNickel / tXml

:zap:very small and fast xml-parser in pure javascript:zap:
MIT License
217 stars 28 forks source link

Parse special entinties #44

Open ecarreras opened 2 years ago

ecarreras commented 2 years ago

With DomParser, this attributes with special attributes like >, < are replaced with the corresponding character, will be possible txml do the same?

TobiasNickel commented 2 years ago

this is an idea, but as it is a breaking either need to be implemented behind an option or via a filter function. not sure what the best appoach would be. i will look into it.

vorth commented 1 year ago

Yes, it is "breaking" your existing behavior, but actually moving toward correctness... it is adhering to the XML standard, and means that your parser is isomorphic to the DOM parser. This just bit me. Yes, an opt-in option at minimum, please.