discourse/test/javascripts/helpers/parse_html.js

10 lines
272 B
JavaScript
Raw Normal View History

/* 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;
2014-07-30 18:56:01 -04:00
}