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)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.