Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.htmlsanitizer
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 Summary
 void sanitizeDocument(DocumentModel doc)
          Sanitizes a document's fields, depending on the service configuration.
 java.lang.String sanitizeString(java.lang.String html, java.lang.String info)
          Sanitizes a string.
 

Method Detail

sanitizeDocument

void sanitizeDocument(DocumentModel doc)
                      throws ClientException
Sanitizes a document's fields, depending on the service configuration.

Throws:
ClientException

sanitizeString

java.lang.String sanitizeString(java.lang.String html,
                                java.lang.String info)
Sanitizes a string.

Parameters:
html - the string to sanitize
info - additional info logged when something is sanitized
Returns:
the sanitized string

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.