Subject: Re: [xsl] Converting &, >, <, ", and other odd-ball characters... From: Mike Brown <mike@xxxxxxxx> Date: Thu, 15 Feb 2001 11:13:06 -0700 (MST) |
Kevin Duffey wrote: > Oh yeah..not sure if you know this or not, but a "performance" tip.. Yes, I knew there were better ways to do it, and I've done those things before; I didn't have access to that code though and I just wanted to get across the general idea, and JSP declarations, in case it was going to be helpful. > Lastly, can you think of any other characters that are a problem when used > in input boxes, text areas, or drop-downs that need to be converted? " -> " only needs to happen when you're putting the string into an attribute value that is delimited by double quotes. Same for ' -> ' when using apostrophes. Escaping these characters is only half of your worries. The other half is that you cannot be guaranteed of the encoding of the form data that arrives in the HTTP request. When people enter non-ASCII characters, your JSP engine has maybe an 80% chance of decoding them properly. - Mike ____________________________________________________________________ Mike J. Brown, software engineer at My XML/XSL resources: webb.net in Denver, Colorado, USA http://skew.org/xml/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Converting &, >, <, ", an, Kevin Duffey | Thread | RE: [xsl] Converting &, >, <, ", an, Kevin Duffey |
[xsl] [ANN] libxslt-0.2.0 is availa, Daniel Veillard | Date | RE: [xsl] Saxon Quirk, Michael Kay |
Month |