All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jtwig.escape.HtmlEscapeEngine Maven / Gradle / Ivy

package org.jtwig.escape;

import org.apache.commons.lang3.StringEscapeUtils;

public class HtmlEscapeEngine implements EscapeEngine {
    private static final HtmlEscapeEngine instance = new HtmlEscapeEngine();

    public static HtmlEscapeEngine instance () {
        return instance;
    }

    private HtmlEscapeEngine () {}

    @Override
    public String escape(String input) {
        return StringEscapeUtils.escapeHtml4(input);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy