Class XSSSanitizerService


  • public final class XSSSanitizerService
    extends java.lang.Object
    This class provides management methods for cleaner
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String sanitize​(java.lang.String strSource)
      Clean HTML code from XSS risks
      • Methods inherited from class java.lang.Object

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

      • sanitize

        public static java.lang.String sanitize​(java.lang.String strSource)
                                         throws XSSSanitizerException
        Clean HTML code from XSS risks
        Parameters:
        strSource - The input string to clean
        Returns:
        The cleaned string
        Throws:
        XSSSanitizerException