Consists of a pair of utilities that let you
convert/strip/insert HTML entities such as &amp; and &quot;
from files converting them back and forth to their
equivalent single characters & and ".  It handles the HTML 4
entities such as &hearts; as well as decimal &#123; and
hexadecimal &x#123; entities.

You may us this package as standalone utilities, or use the
classes in your own programs to insert or strip entities
from HTML.

You can use them like this:

REM to remove &amp; entities and HTML tags from a file
REM converting entities back to characters
strip.jar  afile.html

REM to convert & to &amp; etc. entities in a file
insert.jar afile.html

They come complete with Java source and jar files.

----

Version History:

1.1 uses a slightly faster algorithm.

1.2 has a stripTags method.

1.3 fixes a bug in the possEntitytoChar method.
It did not handle long entities correctly.

1.4 uses Java 1.5 syntax.

1.5 is compatible with Java 1.2+ and no longer
needs to entitytochar.ser property included in the jar.

1.6 has a faster StripEntities.stripHTMLTags.

1.8 fix bug in StripEntities to properly handle &#xffff;

1.9 adds descriptions to generated files.

2.0 tidies code.

2.1 adds hex comments to InsertEntities

2.2 2007-05-14 now strips applet, style and script htmltag pairs.

2.3 2008-07-29 refactor code for Entities, add notes to chars, add a few new missing Entities.

2.4 2008-08-05 add translateNbspTo parameter to several
        methods and deprecate the versions without it. This allows
        you to directly control how &nbsp; is translated, usually
        ' ' or (char)160. Renamed methods to make it clearer just what
        sort of input is expected

2.5 2008-08-06 support for XML delete/instert entity
        references/tags.  Rename methods to make it clear if they
        refer to HTML or XML. Convert he JDK 1.5+ with generics, for:each and StringBuilder.

2.6 2009-04-05 StripEntities now leaves a space behind when it removes a <br><p><td> etc tag.

2.7 2009-11-14 generate a table for the HTML cheat sheet of quote-like entities.

2.8 2009-12-22 export table on HTML 5 entities.  Now import csv file rather than embed entity facts.

2.9 2010-01-29 - export XHTML entities (currently same as HTML-4 entities).
-30-

