private void createHtmlCleanerIfNeeded()
{
if (null == cleaner) {
cleaner = new HtmlCleaner();
CleanerProperties props = cleaner.getProperties();
props.setAllowHtmlInsideAttributes(true);
props.setAllowMultiWordAttributes(true);
props.setRecognizeUnicodeChars(true);
props.setOmitComments(true);
props.setTreatUnknownTagsAsContent(false);
props.setTranslateSpecialEntities(true);
props.setTransResCharsToNCR(true);
props.setNamespacesAware(false);
}
}