fun.bigtable.kraken.util.XssEscapeUtils Maven / Gradle / Ivy
package fun.bigtable.kraken.util;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
public class XssEscapeUtils {
public static List patternList = new ArrayList<>();
static {
patternList.add(Pattern.compile("", Pattern.CASE_INSENSITIVE));
patternList.add(Pattern.compile("src[\r\n]*=[\r\n]*\\\'(.*?)\\\'", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL));
patternList.add(Pattern.compile("src[\r\n]*=[\r\n]*\\\"(.*?)\\\"", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL));
patternList.add(Pattern.compile("", Pattern.CASE_INSENSITIVE));
patternList.add(Pattern.compile("