htmlParser.parse(html);
} catch (ParseException e) {
return false;
}
return htmlParser.getState() == HtmlParser.STATE_TEXT
&& !htmlParser.inJavascript() && !htmlParser.inCss();
}
/**
* Conditionally checks if the provided HTML string is complete (ends in "inner HTML"
* context).