This is my code,
require_once 'libraries/htmlpurifier/HTMLPurifier.auto.php';
$config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config);
$lDesc = $_POST['long-desc'];
$lDesc = $purifier->purify($lDesc);
$lDesc = mysql_real_escape_string($lDesc);
if the long description have a link, the href tag converted as the following: href="%5C"
previously I solved this error by processing HTMLPurifier
before mysql_real_escape_string
and it is also still working on my localhost (inserting the real link in the href tag)
but on the live server it gives that error!
any ideas?