|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.xmlserv.util.HtmlUtil
Constructor Summary | |
HtmlUtil()
|
Method Summary | |
static java.lang.String |
htmlize(java.lang.String in)
convert plain text to some HTML look-a-like: Convert linebreaks to <br> Convert <, > and & to entities |
static void |
main(java.lang.String[] args)
simple text -> HTML converter. |
static java.lang.String |
repair(java.lang.String in)
Repais minor glitches (differences between HTML and XHTML): Close all <br> tags Close all <hr> tags Close all <img> tags Ensure that a surrounding tag pair exists |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HtmlUtil()
Method Detail |
public static java.lang.String htmlize(java.lang.String in)
public static java.lang.String repair(java.lang.String in)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |