Package com.atlassian.bamboo.utils
Class HtmlUtils
- java.lang.Object
-
- com.atlassian.bamboo.utils.HtmlUtils
-
public class HtmlUtils extends Object
Bamboo HTML utilities.
-
-
Constructor Summary
Constructors Constructor Description HtmlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull String
stripHtml(@NotNull String htmlString)
Strips HTML characters from the given string, returning its content as plain text.
-
-
-
Method Detail
-
stripHtml
@NotNull public static @NotNull String stripHtml(@NotNull @NotNull String htmlString)
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
-
-