• Resolved glinch

    (@glinch)


    Hi

    As a suggestion, would it not be beneficial for the plugin to translate all HTML entities to plain text when creating the feed.

    I had an issue when a custom field, being used for “mpn”, which contained an erroneous ” “. This appears to effect the whole feed and threw up errors with Google, once removed the issue was resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    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 6 years, 3 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  

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    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.

    Thread Starter glinch

    (@glinch)

    Cheers Michel, thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filtering/translating HTML entities in fields’ is closed to new replies.