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
    String getSafeContent​(String content)
    Return a safe HTML string version of the provided content.
    String getTextContent​(String content)
    Return a safe text string version of the provided content.
  • Method Details

    • getSafeContent

      String getSafeContent​(String content)
      Return a safe HTML string version of the provided content.
      Parameters:
      content - content to clean
      Returns:
      cleaned content
    • getTextContent

      String getTextContent​(String content)
      Return a safe text string version of the provided content.
      Parameters:
      content - content to clean
      Returns:
      cleaned content