Package org.outerj.daisy.htmlcleaner

Examples of org.outerj.daisy.htmlcleaner.HtmlCleaner


    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;
View Full Code Here

TOP

Related Classes of org.outerj.daisy.htmlcleaner.HtmlCleaner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.