Class HtmlSanitizerListener
- java.lang.Object
-
- org.nuxeo.ecm.platform.htmlsanitizer.HtmlSanitizerListener
-
- All Implemented Interfaces:
EventListener
public class HtmlSanitizerListener extends Object implements EventListener
Listener that sanitizes some HTML fields to remove potential cross-site scripting attacks in them.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DISABLE_HTMLSANITIZER_LISTENER
-
Constructor Summary
Constructors Constructor Description HtmlSanitizerListener()
-
-
-
Field Detail
-
DISABLE_HTMLSANITIZER_LISTENER
public static final String DISABLE_HTMLSANITIZER_LISTENER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HtmlSanitizerListener
public HtmlSanitizerListener()
-
-
Method Detail
-
handleEvent
public void handleEvent(Event event)
Description copied from interface:EventListener
Handle the given event. The listener can cancel the event by callingEvent.cancel()
- Specified by:
handleEvent
in interfaceEventListener
- Parameters:
event
- the event
-
-