discourse/test/javascripts/helpers/parse_html.js
2013-10-25 15:24:03 -04:00

7 lines
No EOL
218 B
JavaScript

function parseHTML(rawHtml) {
var builder = new Tautologistics.NodeHtmlParser.HtmlBuilder(),
parser = new Tautologistics.NodeHtmlParser.Parser(builder);
parser.parseComplete(rawHtml);
return builder.dom;
}