I am pretty sure that the suggest fix for _hesc doesn't work.....

I think this is a working solution:

function _hesc(str) {
str = str.replace(/</g, "&lt;");
str = str.replace(/>/g, "&gt;");
str = str.replace(/"/g, "&quot;").replace(/'/g, "&#39;");
return str;
}

Hope this helps

Steve

-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en.

Reply via email to