Originally posted by Kevin Weisz:
so I don't need the java.net.URLEncoder/URLDecoder classes.
Those wouldn't help you anyways; URL encoding and HTML Entity encoding are completely separate things.
There is no built-in encoder/decoder for HTML entitites. You'll either need to write your own or find a 3rd party implementation.
Depending upon how detailed you want to get (do you want to support all entitites, or just the critical ones like &, < and >) it can be as simple as a few calls to String.replaceAll().
[ May 03, 2007: Message edited by: Bear Bibeault ]