Package org.appng.api.support
Class XSSHelper
- java.lang.Object
-
- org.appng.api.support.XSSHelper
-
-
Constructor Summary
Constructors Constructor Description XSSHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XSSUtil
getXssUtil(Properties platformProps, String... exceptions)
Creates and returns aXSSUtil
.
If the boolean propertyxssProtect
of the givenProperties
istrue
, a newXSSUtil
is being created.
-
-
-
Method Detail
-
getXssUtil
public static XSSUtil getXssUtil(Properties platformProps, String... exceptions)
Creates and returns aXSSUtil
.
If the boolean propertyxssProtect
of the givenProperties
istrue
, a newXSSUtil
is being created. The list-type propertyxssAllowedTags
can be used to allow additional tags and attributes. The format is:<tag1> <attribute1a> <attribute1b>|<tag2> <attribute2a> <attribute2b>
Example:h1|h2|a href class style|div align style
- Parameters:
platformProps
-exceptions
-- Returns:
-
-