Class SanitizeDirective
- java.lang.Object
-
- org.silverpeas.core.contribution.content.wysiwyg.service.directive.SanitizeDirective
-
- All Implemented Interfaces:
WysiwygContentTransformerDirective
public class SanitizeDirective extends Object implements WysiwygContentTransformerDirective
Sanitize the WYSIWYG content in order to keep only:- safe formatting
- safe blocks
- safe images
- safe links
- safe tables
- safe styles
- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description SanitizeDirective()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
execute(String wysiwygContent)
Executes the directive on the given WYSIWYG content.
-
-
-
Method Detail
-
execute
public String execute(String wysiwygContent)
Description copied from interface:WysiwygContentTransformerDirective
Executes the directive on the given WYSIWYG content.- Specified by:
execute
in interfaceWysiwygContentTransformerDirective
- Parameters:
wysiwygContent
- the WYSIWYG content source.- Returns:
- the WYSIWYG content on which the directive has been performed.
-
-