Package xyz.jpenilla.squaremap.api
Interface HtmlStripper
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public interface HtmlStripper
Strips HTML tags from text. Allows sanitizing untrusted strings before use in
marker tooltips.
- Since:
- 1.2.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic HtmlStripperGet anHtmlStripper.Strips HTML tags from the provided string.
-
Method Details
-
htmlStripper
Get anHtmlStripper.- Returns:
- HTML stripper
-
stripHtml
Strips HTML tags from the provided string.- Parameters:
string- untrusted string- Returns:
- sanitized string
-