Package com.atlassian.bamboo.utils
Class HtmlUtils
java.lang.Object
com.atlassian.bamboo.utils.HtmlUtils
Bamboo HTML utilities.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HtmlUtils
public HtmlUtils()
-
-
Method Details
-
stripHtml
Strips HTML characters from the given string, returning its content as plain text.Examples:
stripHtml("www.example.com") = "www.example.com" stripHtml("<a href='example.com'>Hello, World!</a>") = "Hello, World!" stripHtml("<div>Lorem<div>ipsum</div></div>") = "Lorem ipsum"
- Parameters:
htmlString
- html string- Returns:
- plain text string
-