try {
HtmlCleaner cleaner = new HtmlCleaner();
TagNode root = cleaner.clean(dirtyHtml);
return new SimpleHtmlSerializer(cleaner.getProperties()).getAsString(root);
} catch (IOException e) {
logger.error(e.getMessage(), e);
}
return StringUtils.EMPTY;
}