public class HTMLTextHelper
extends java.lang.Object
Constructor and Description |
---|
HTMLTextHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convertHtmlToText(java.lang.String html)
Replaces HTML German umlauts and the HTML formatting tags with a Java String.
|
static java.lang.String |
convertTextToHtml(java.lang.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 java.lang.String |
convertTextToHtml(java.lang.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 |
static java.lang.String |
getCssRgbColorEntry(java.awt.Color c)
Creates a rgb color entry for css format.
|
public static java.lang.String convertTextToHtml(java.lang.String text)
<br>
Links in the text will be made clickable.text
- text to displaypublic static java.lang.String convertTextToHtml(java.lang.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 linkspublic static java.lang.String convertHtmlToText(java.lang.String html)
html
- The HTML text to replace.public static java.lang.String getCssRgbColorEntry(java.awt.Color c)
c
- The color to get the css entry forTV-Browser 3.4.4, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)