Wanted to correct my earlier post.. Hypercoyote pointed out an error in the code posted by both Davewest and myself..
Also in looking over this again, I realized that there may have been no reason to replace the original code in the sanitizer section.. just simply needed to add to it..
So here's the corrected code.. (Works with version 1.7.4 of Google Base Feeder module)
- To fix double quotation (") marks in product descriptions, AND product titles. (ie: 12-14" Widget)
- To correct ampersands (&) used instead of the word "and" in product descriptions.
In \includes\classes\google_base.php around line 202 find this:
PHP Code:
$str = str_replace(array("<", ">"), array("<", ">"), $str);
Replace that line with:
PHP Code:
// $str = str_replace(array("<", ">"), array("<", ">"), $str);
// 10-01-2009 Updated line 202 to include corrections for quotation marks and ampersands in product titles and descriptions
$str = str_replace(array("<", ">", "lt;", "gt;", "quot;", """, "amp;"), array("<", ">", "<", " > ", """, "\"", "&"), $str);
Bookmarks