Package io.micronaut.http.util
Interface HtmlSanitizer
- All Known Implementing Classes:
HtmlEntityEncodingHtmlSanitizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
API to sanitize a String of HTML.
- Since:
- 4.7.0
- Author:
- Sergio del Amo
-
Method Summary
-
Method Details
-
sanitize
Sanitizes a string of HTML.- Parameters:
html
- the String of HTML to Sanitize- Returns:
- a sanitized version of the supplied HTML String.
-