Package org.jasig.portlet.cms.service
Interface IStringCleaningService
- All Known Implementing Classes:
AntiSamyStringCleaningService
public interface IStringCleaningService
IStringCleaningService is responsible for cleaning HTML content according
to any configured validation rules. Implementations may remove
invalid, unsafe, or undesired tags and attributes.
- Version:
- $Revision$
- Author:
- Jen Bourey, jbourey@unicon.net
-
Method Summary
Modifier and Type Method Description StringgetSafeContent(String content)Return a safe HTML string version of the provided content.StringgetTextContent(String content)Return a safe text string version of the provided content.
-
Method Details
-
getSafeContent
Return a safe HTML string version of the provided content.- Parameters:
content- content to clean- Returns:
- cleaned content
-
getTextContent
Return a safe text string version of the provided content.- Parameters:
content- content to clean- Returns:
- cleaned content
-