
Originally Posted by
DivaVocals
Go to Page 575 and follow the discussion about why this was added to the current IH2 release..
i wonder what result would be achieved with the additional images if the code would be rewritten like this:
PHP Code:
//escape possible quotes if they're not already escapped
//$alt = preg_replace("/([^\\\\])'/", '$1\\\'', $alt);
//$alt = str_replace('"', '"', $alt);
$alt = addslashes(htmlentities($alt, ENT_COMPAT, CHARSET));
I cant reproduce because i am showing medium images as additionals in my shop, but if someone is willing to take a look i would be interested to hear.
cheers,
jeroen
Bookmarks