Do you know of any JS library that converts HTML->XML?
And not only clean HTML, but also malformed (or 'dirty') real world HTML?
Is such a library available in JS or do I have to go in for a server side library (like in Java etc)?
Do you know of any JS library that converts HTML->XML?
And not only clean HTML, but also malformed (or 'dirty') real world HTML?
Is such a library available in JS or do I have to go in for a server side library (like in Java etc)?
There are several forgiving HTML parsing JS libraries targeted to Node, but should work in the browser if you really need that.
You could combine one of those with something that outputs XML from JS objects.