Remove content not valid with PHP 5.3