Interface HtmlSanitizerService

  • All Known Implementing Classes:
    HtmlSanitizerServiceImpl

    public interface HtmlSanitizerService
    Service that sanitizes some HTML fields to remove potential cross-site scripting attacks in them.
    • Method Detail

      • sanitizeDocument

        void sanitizeDocument​(DocumentModel doc)
        Sanitizes a document's fields, depending on the service configuration.
      • sanitizeString

        String sanitizeString​(String html,
                              String info)
        Sanitizes a string.
        Parameters:
        html - the string to sanitize
        info - additional info logged when something is sanitized
        Returns:
        the sanitized string