public class XssValidator extends BaseValidator { private XssValidator(){ } public static final String REGEX_XSS = "^(?!.*(<|>))[\\s\\S]*$"; /** * * @param inputText input string * @return true:false */ public static boolean isVaid(String inputText) { return RegexValidator.isValid(XssValidator.REGEX_XSS, inputText); } }