Forum Moderators: coopster
I'm using HTMLArea for a CMS I'm making! I've had a look through the JS and written eregi and preg replace scripts to get rid of 'area' tag it adds to images, but it won't budge! Maybe my PHP is wrong, here it is:
$bodys = array("/border=\"[[:digit:]]\"/", "/vspace=\"[[:digit:]]\"/", "/hspace=\"[[:digit:]]\"/", "/align=\"[[:alpha:]]\"/", "/area=\"[[:digit:]]\"/");
$bodyr = array("","","","","");
$body = eregi_replace($bodys,$bodyr,$body);
Nevertheless, why does HTMLArea add it? I'm investigating at the mo, but if anyone knows, please post! Cheers :D