[slightly OT] XML & special character question
Josh Mellicker
josh at dvcreators.net
Fri Apr 18 21:06:21 EDT 2008
I have this handler to translate some special XML characters:
FUNCTION getXMLFixed p
replace "&" WITH "&" in p
replace "<" WITH "<" in p
replace ">" WITH ">" in p
replace "'" WITH "'" in p
replace ""&" WITH quote in p
replace "©" WITH "©" in p
replace "℗" WITH "®" in p
replace "™" WITH "™" in p
replace "â" WITH "a" in p
replace "(C)" WITH "©" in p
return p
END getXMLFixed
On Apr 18, 2008, at 1:42 PM, jbv wrote:
> Hi list,
>
> How do you guys handle the "&" character in xml ?
> Actually I need to pass html links as node values in xml (from a rev
> cgi
>
> script to the browser) and those links contain "&"...
> I managed to solve the problem with "&" inside names (smith & weston)
> but as for html links, no luck... it just scares the parser...
>
> Thanks,
> JB
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list