& shouldn't ever appear literally in product titles within the page body unless, and occasionally you do come across this, it has been incorrectly XML encoded and also CDATA delimited within an XML source. For example, a raw, un-parsed feed contains:
<title><![CDATA[This &amp; That]]></title>
Since the text is within CDATA delimiters the first & should _not_ be XML entity encoded - so the output from the parser is exactly as seen. And since & is also an HTML entity, ergo you end up with & being displayed instead of just "&"!
You can work around this with a Search and Replace filter applied to the Product Name field for the affected feed using:
Search: &amp;
Replace: &
(the script will then correctly encode & wherever needed)
Hi Paul,
&
shouldn't ever appear literally in product titles within the page body unless, and occasionally you do come across this, it has been incorrectly XML encoded and also CDATA delimited within an XML source. For example, a raw, un-parsed feed contains:<title><![CDATA[This &amp; That]]></title>
Since the text is within CDATA delimiters the first & should _not_ be XML entity encoded - so the output from the parser is exactly as seen. And since
&
is also an HTML entity, ergo you end up with&
being displayed instead of just "&"!You can work around this with a Search and Replace filter applied to the Product Name field for the affected feed using:
Search:
&amp;
Replace:
&
(the script will then correctly encode & wherever needed)
Cheers,
David.
--
PriceTapestry.com