|
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Objectorg.makumba.HtmlUtils
public class HtmlUtils
This class provides basic 'text-to-HTML' functionality. Note: previously this was an existing class in the internal "util" package (fred, 2003-08-24).
| Field Summary | |
|---|---|
static String[] |
specials
|
static String[] |
tagExamples
|
| Constructor Summary | |
|---|---|
HtmlUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
detectHtml(String s)
Tries to detect whether input string is HTML-formatted; heuristic detection. |
static int |
maxLineLength(String s)
Determines the maximum length of a line in a text. |
static String |
string2html(String s)
Converts a string into its HTML correspondent using special codes. |
static String |
stripHTMLTags(String str)
removes HTML tags and replaces double quotes by the corresponding HTML entity, so that the passed text can safely be included in HTML attributes (such as the <A> TITLE attribute) |
static String |
text2html(String s,
String startSeparator,
String endSeparator)
Prints a text with very long lines. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String[] specials
public static String[] tagExamples
| Constructor Detail |
|---|
public HtmlUtils()
| Method Detail |
|---|
public static boolean detectHtml(String s)
public static String string2html(String s)
public static int maxLineLength(String s)
public static String text2html(String s,
String startSeparator,
String endSeparator)
public static String stripHTMLTags(String str)
|
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||