java.lang.Object
de.hybris.platform.adaptivesearchbackoffice.common.HTMLSanitizer

public class HTMLSanitizer extends Object
This file contains static methods that are used by JSP EL.
  • Field Details

    • POLICY

      protected static final org.owasp.html.PolicyFactory POLICY
  • Method Details

    • sanitizeHTML

      public static String sanitizeHTML(String untrustedHTML)
      Sanitizes unsafe HTML string
      Parameters:
      untrustedHTML - - potentially unsafe HTML string
      Returns:
      safe HTML string with allowed elements only. All other elements that are not specified as allowed are removed.