Richard O. Hammer wrote:

My question: Does the JDK come with a utility method which I can feed
my Strings through, which will escape the characters that need escaping?


I don't know of anything built into the standard libraries... but, if open source is acceptable to you, the Jakarta Commons-Lang component has a StringEscapeUtils class that does exactly what you're asking for.

There are also at least a couple of other open source libraries that include that functionality.

http://www.jeffyjeffy.com/code/xbn_java/xbn_java/

is one.

HTH...

TTYL,

Phil

--
When the 1st Amendment no longer protects your voice.
And when the 4th Amendment no longer protects your privacy or your stuff.
Thank God we have the 2nd Amendment to tell our elected representatives that enough is enough.
It's time to put "... from my cold, dead hands" back where it belongs.


FREE AMERICA
Vote Libertarian
www.lp.org


_______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to