Re: Preview in PM
Reply #25 –
Note to self: jQuery.get() doesn't use fetch, probably nor should it.
@Spuds I don't really see any places where php_urlencode should be dropped? I mean, it's applied to URI components after all. And on the PHP side of things all I see is the correct filtering of a couple of disallowed characters:
function cleanXml($string)
{
// http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char
return preg_replace('~[\x00-\x08\x0B\x0C\x0E-\x19\x{FFFE}\x{FFFF}]~u', '', $string);
}
Long story short, I set out to perform the cleaning you suggested and all I found was the php_urlencode() function itself.