SyntaxFix
Write A Post
Hire A Developer
Questions
Check out John Resig's pure JavaScript HTML parser.
EDIT: if you want the browser to parse the HTML for you, innerHTML is exactly what you want. From this SO question:
innerHTML
var tempDiv = document.createElement('div'); tempDiv.innerHTML = htmlString;