- Unclosed Tags:
HTMLtoXML("Hello") == ' Hello '
- Empty Elements:
HTMLtoXML("") == ''
- Block vs. Inline Elements:
HTMLtoXML("Hello John") == 'Hello John '
- Self-closing Elements:
HTMLtoXML("Hello World") == ' Hello World '
- Attributes Without Values:
HTMLtoXML("") == ''
Friday, August 6, 2010
html2xml
While this library doesn't cover the full gamut of possible weirdness that HTML provides, it does handle a lot of the most obvious stuff. All of the following are accounted for:
{{bliparr.length-1}} comments
Stay in touch with the conversation, follow to the wave for comments on this post . You can also invite someone to this wave .
Subscribe to:
Post Comments (Atom)
{{blip.html}}