Old problem with links and html purfier.
I’m using this code:
$config = HTMLPurifier_Config::createDefault();
$config->set('HTML.Allowed', 'p,b,a[href],i');
$config->set('HTML.AllowedAttributes', 'a.href');
$purifier = new HTMLPurifier($config);
But it doesn’t work.
The input
<a href="http://www.google.de">search</a>
will be turned to
<a href="%5C">search</a>
Any ideas?
Turn off magic quotes. http://php.net/manual/en/security.magicquotes.disabling.php