Take that line out, it will actually create more bugs than it'll fix. Let's try this instead:However, this didn't work. I created the file again and reuploaded and I still get the same error from Google and line 4 still says:
<title>S&A</title>
Any other ideas?
In the meantime, I've manually edited the xml file and changed that line to
<title>S&A</title>
PHP Code:function zen_xml_sanitizer ($str) {
$_strip_search = array("![\t ]+$|^[\t ]+!m",'%[\r\n]+%m'); // remove CRs and newlines
$_strip_replace = array('',' ');
$_cleaner_array = array(">" => "> ", "®" => "", "®" => "", "™" => "", "™" => "", "\t" => "", " " => "");
$str = html_entity_decode($str);
$str = strtr($str, $_cleaner_array);
$str = preg_replace($_strip_search, $_strip_replace, $str);
$str = strip_tags($str);
$str = eregi_replace("[^[:alnum:][:space:].,!()'-_/+=?]", "", $str);
$str = str_replace('&', '&', $str); // changes & to &
$str = htmlentities($str);
$str = str_replace('&amp;', '&', $str); // replaces occurences of &amp; with &
}



