Package org.apache.sling.xss.impl.style
Class BatikCssCleaner
java.lang.Object
org.apache.sling.xss.impl.style.BatikCssCleaner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncleanStyleDeclaration
(String untrustedCss) Parses a CSS style declaration (i.e. the text of a style attribute) and returns it in a safe formcleanStylesheet
(String untrustedCss) Parses a CSS stylesheet and returns it in a safe form
-
Constructor Details
-
BatikCssCleaner
-
-
Method Details
-
cleanStylesheet
Parses a CSS stylesheet and returns it in a safe form- Parameters:
untrustedCss
- a complete CSS stylesheet- Returns:
- the cleaned CSS stylesheet text
-
cleanStyleDeclaration
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
-