com.xmlserv.util
Class HtmlUtil

java.lang.Object
  |
  +--com.xmlserv.util.HtmlUtil

public class HtmlUtil
extends java.lang.Object


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

HtmlUtil

public HtmlUtil()
Method Detail

htmlize

public static java.lang.String htmlize(java.lang.String in)
convert plain text to some HTML look-a-like:

repair

public static java.lang.String repair(java.lang.String in)
Repais minor glitches (differences between HTML and XHTML):

main

public static void main(java.lang.String[] args)
simple text -> HTML converter. Reads text from stdin and writes converted text to stdout.