discourse/test/javascripts/helpers/parse_html.js
2014-07-30 20:09:45 -04:00

10 lines
272 B
JavaScript

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