Class OwaspXSSSanitizer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init()
      init config
      java.lang.String sanitize​(java.lang.String strSource)
      sanitize the HTML code (remove XSS risks)
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OwaspXSSSanitizer

        public OwaspXSSSanitizer()
    • Method Detail

      • sanitize

        public java.lang.String sanitize​(java.lang.String strSource)
        Description copied from interface: IXSSSanitizer
        sanitize the HTML code (remove XSS risks)
        Specified by:
        sanitize in interface IXSSSanitizer
        Parameters:
        strSource - The input string to clean
        Returns:
        The cleaned string