Class OwaspXSSSanitizer

java.lang.Object
fr.paris.lutece.portal.service.html.OwaspXSSSanitizer
All Implemented Interfaces:
IXSSSanitizer

public class OwaspXSSSanitizer extends Object implements IXSSSanitizer
  • Constructor Details

    • OwaspXSSSanitizer

      public OwaspXSSSanitizer()
  • Method Details

    • sanitize

      public String sanitize(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
    • init

      public void init()
      Description copied from interface: IXSSSanitizer
      init config
      Specified by:
      init in interface IXSSSanitizer