Hello @glinch,
Thanks for your suggestion. The issue is I already use the strip_tags function to remove the HTML tags from the xml data items so that should already be done.
But if I read your topic correctly the mpn contained a space? Can you tell me how that mpn data looked liked in total? Was the space inside the string or at the end or beginning of the string?
Thread Starter
glinch
(@glinch)
Yep, I thought that this would have been stripped out but it wasn’t.
Also I don’t believe that HTML entities are being stripped from the product titles, as I have noticed that the Product Titles still include ” ” in the feeds. Google doesn’t appear to get too upset by those in that particular field though.
The mpn that I had issues with was formatted like so: TEXT NUMBERS
If you need any more info please let me know.
-
This reply was modified 7 years, 6 months ago by
glinch.
Thread Starter
glinch
(@glinch)
I’ve just realised the html entity wasn’t being displayed as text above!
the ” ” above should be
The Product Titles are wrapped in a CDATA block (same with the category name and the description) because some users requested to have html code in their product titles and description. When wrapped in a CDATA block, html code can be used in an xml file and will be accepted by Google. If you want to put more items in a CDATA block you can use the ‘wppfm_cdata_keys’ filter to add these items to the list.
As for removing the , I changed the code as such that the code is changed to a space. This will not be implemented in the update that will be released this week as it was already in the testing phase, but will be in the release after that.
Thanks for the suggestion and have a nice day.