Package org.ka2ddo.util
Class HtmlUtil
java.lang.Object
org.ka2ddo.util.HtmlUtil
A collection of utility functions for manipulating HTML.
- Author:
- Andrew Pavlin, KA2DDO
-
Method Summary
-
Method Details
-
stripHtml
Strip HTML directives from a String. Useful when doing accessibility on a widget whose label text uses HTML formatting.- Parameters:
s
- String to parse- Returns:
- stripped String
-
htmlEscape
Expand the provided plain-text (not HTML) string with HTML escapes so that it isn't mis-interpreted by HTML parsers.- Parameters:
s
- plain-text String- Returns:
- String escaped for HTML compatibility
-