public class HtmlUtils extends Object
Constructor and Description |
---|
HtmlUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
stripHtml(String htmlString)
Strips HTML characters from the given string, returning it's content as plain text.
|
@NotNull public static String stripHtml(@NotNull String htmlString)
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"
htmlString
- html stringCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.