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
Modifier and TypeMethodDescriptionvoid
Sanitizes a document's fields, depending on the service configuration.sanitizeString
(String html, String info) Sanitizes a string.
-
Method Details
-
sanitizeDocument
Sanitizes a document's fields, depending on the service configuration. -
sanitizeString
Sanitizes a string.- Parameters:
html
- the string to sanitizeinfo
- additional info logged when something is sanitized- Returns:
- the sanitized string
-