public class InlineStyleCleaner extends AttributeCleaner
style
attribute
using a whitelist of authorized css properties.Constructor and Description |
---|
InlineStyleCleaner()
Build a new cleaner
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
cleanSingleValue(java.lang.String cssProperty)
Clean individual value of the attribute.
|
clean, clean, configureFromProperties
addBlacklistedValue, addWhitelistedValue, getBlacklist, getBlacklistRegex, getDefaultBehavior, getWhitelist, getWhitelistRegex, isAuthorized, isEnabled, removeBlacklistedValue, removeWhitelistedValue, setBlacklistRegex, setDefaultBehavior, setEnabled, setWhitelistRegex, toString
protected java.lang.String cleanSingleValue(java.lang.String cssProperty)
AttributeCleaner
When attributes accept several values (such as "class" attribute),
this method is invoked for each of this value.
When attributes accept only one value (such as "id" attribute),
this method is invoked one for the whole attribute value.
Override to provide custom cleaning behavior.
cleanSingleValue
in class AttributeCleaner
cssProperty
- the unsafe attribute value (or "split" value in case multiple values)Copyright © 2001-2018 Jalios SA. All Rights Reserved.