|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutil.ui.html.HTMLTextHelper
public class HTMLTextHelper
This is a Helper-Class for converting Text to HMTL
| Constructor Summary | |
|---|---|
HTMLTextHelper()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLTextHelper()
| Method Detail |
|---|
public static String convertTextToHtml(String text)
<br>
Links in the text will be made clickable.
text - text to display
public static String convertTextToHtml(String text,
boolean createLinks)
<br>
If createLinks is true, it will try to find links and make them clickable
text - text to displaycreateLinks - if true, it will create links
public static String convertHtmlToText(String html)
html - The HTML text to replace.
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||