[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: converting html special characters



The attached Java file may be of help.  It's from an open-source program so
you may need to check the GPL license if you're going to include it in a
commercial product.  But I suppose they wouldn't really care that much if
you're just borrowing a utility class like this and not a core special
algorithm.
As always, consult with your attorney for guidence or get professional
advice since
I'm not a lawyer or play one on TV.

Pros



-----Original Message-----
From: Michael Campbell [mailto:michael_s_campbell@yahoo.com]
Sent: Sunday, August 05, 2001 5:09 PM
To: Jim Michael; ajug-members@ajug.org
Subject: Re: converting html special characters


I'd say regex's for this is a bit overkill, since it's a simple
single-character mapping exercise.


----- Original Message -----
From: "Jim Michael" <jmichael@anytransactions.com>
To: <ajug-members@ajug.org>
Sent: Sunday, August 05, 2001 4:42 PM
Subject: RE: converting html special characters


> The general solution is to use regular expressions. There are a few
> perl-like regex engines for java. Search the list archives for
> recommendations.
>
> Cheers,
>
> Jim
>
> -----Original Message-----
> From: Deron Pardue
> To: ajug-members@ajug.org
> Sent: 8/3/01 4:58 PM
> Subject: converting html special characters
>
> Are there any classes that are useful in converting special html
> characters to their escape sequences...
>
> For instance to translate
>
>     He wrote, " x > 5 "
>
> into
>
>     He wrote, &quot; x &gt; 5 &quot;
>
>
>
> Thanks!!!
>
>
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

URLUtil.java