public HtmlCleaningConvertor(HtmlCleanerTemplate template) {
this.template = template;
}
public ConversionResult convertFromString(String value, Locale locale, Convertor.FormatCache formatCache) {
HtmlCleaner cleaner = template.newHtmlCleaner();
try {
String result = cleaner.cleanToString(value);
return new ConversionResult(result);
} catch (Exception e) {
Throwable t = ExceptionUtils.getRootCause(e);
if (t == null)
t = e;