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

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

package org.jtwig.escape;

import org.apache.commons.lang3.StringEscapeUtils;

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

    public static JavascriptEscapeEngine instance () {
        return instance;
    }

    private JavascriptEscapeEngine () {}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy