Package org.fenixedu.academic.ui.renderers.htmlEditor

Examples of org.fenixedu.academic.ui.renderers.htmlEditor.HtmlToTextConverter.convert()


    public static String convertToText(String html) {

        // TODO: Move HtmlToTextConverter code to here, so this util does not
        // have to know about renderers
        HtmlToTextConverter converter = new HtmlToTextConverter();
        return (String) converter.convert(String.class, html);
    }

    public static String convertToTextWithRegEx(String html) {
        return html.toString().replaceAll(REGEX_PATTERN, "");
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.