Class BatikCssCleaner

java.lang.Object
org.apache.sling.xss.impl.style.BatikCssCleaner

public class BatikCssCleaner extends Object
  • Constructor Details

  • Method Details

    • cleanStylesheet

      public String cleanStylesheet(String untrustedCss)
      Parses a CSS stylesheet and returns it in a safe form
      Parameters:
      untrustedCss - a complete CSS stylesheet
      Returns:
      the cleaned CSS stylesheet text
    • cleanStyleDeclaration

      public String cleanStyleDeclaration(String untrustedCss)
      Parses a CSS style declaration (i.e. the text of a style attribute) and returns it in a safe form
      Parameters:
      untrustedCss - a css style declaration
      Returns:
      the cleaned CSS style declaration