public final class HtmlHelper extends Object
Constructor and Description |
---|
HtmlHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getHtmlFromPlainText(String text)
Rudimentary conversion of plain text to HTML, preserving line breaks.
|
static String |
getPlainTextFromBodyFragment(String body)
Extract plain text from text which may contain HTML elements.
|
static String |
getPlainTextFromHtml(String html)
Extract plain text from a full HTML document.
|
static String |
strip(String html)
Extract plain text from HTML.
|
public static String getHtmlFromPlainText(String text)
text
- plain textpublic static String strip(String html)
html
- HTML documentpublic static String getPlainTextFromHtml(String html)
html
- HTML documentCopyright © 2000–2024 Packwood Software. All rights reserved.