public class HTMLTextHelper extends Object
Constructor and Description |
---|
HTMLTextHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
convertHtmlToText(String html)
Replaces HTML German umlauts and the HTML formatting tags with a Java String.
|
static String |
convertTextToHtml(String text)
Convert Text to HTML. > and < will be converted to > and <
\n will be
<br>
Links in the text will be made clickable. |
static String |
convertTextToHtml(String text,
boolean createLinks)
Convert Text to HTML. > and < will be converted to > and <
\n will be
<br>
If createLinks is true, it will try to find links and make them clickable |
public static String convertTextToHtml(String text)
<br>
Links in the text will be made clickable.text
- text to displaypublic static String convertTextToHtml(String text, boolean createLinks)
<br>
If createLinks is true, it will try to find links and make them clickabletext
- text to displaycreateLinks
- if true, it will create linksTV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)