Encoding for XML output

Post Reply
mjacobson
Posts: 204
Joined: Fri Feb 08, 2002 3:35 pm

Encoding for XML output

Post by mjacobson »

I am trying to encode some strings to output in XML. I run the string through <strfmt %hhV $p> which seems to work except if I have a string with a "'" like "Jim's sister". Am I missing a flag in strfmt?
mjacobson
Posts: 204
Joined: Fri Feb 08, 2002 3:35 pm

Encoding for XML output

Post by mjacobson »

My mistake. I had place single quotes around the attribute value so the single quote in my string was mismatched. Replaced with double quotes and everything worked.
Post Reply