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?
Encoding for XML output
Encoding for XML output
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.