-----BEGIN PGP SIGNED MESSAGE-----
Hash: MD5

someone was looking for an undo htmlspecial chars well i found a
snipet on sourcefourge i forgot who sent the mail so here you go who
ever you are..
function unconvert_htmlspecialchars($string)
{
        if( strlen($string) < 4 )
        {
                return $string;
        }
        else
        {
                $string=str_replace('&nbsp;', ' ', $string);
                $string=str_replace('&quot;', '"', $string);
                $string=str_replace('&gt;', '>', $string);
                $string=str_replace('&lt;', '<', $string);
                $string=str_replace('&amp;', '&', $string);

                return $string;
        }
}





- --
Best regards,
 Nicholas                          mailto:[EMAIL PROTECTED]

-----BEGIN PGP SIGNATURE-----
Version: 2.6

iQCVAwUAOwh4trovzXm8USdPAQFHCwQAq4xR+xFzDesNaEbyh9yXi6pZvLUFD/ef
Rb5OfkXr6qj84JSzAdQpDFKVDxabQ0rLY0SdMJqgkwc6Er+TdfyZ49tP3UhUK1it
fBC3HtIJspugG9ld0yF7vgNkWoDwtfiPPcN63y6Nb3xWmL1HVSNVf3cHnbFrNtAg
UNmJ6Gz/oTQ=
=XOxm
-----END PGP SIGNATURE-----


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to