Jump to content

[SOLVED] Remove tags in XML


Recommended Posts

Hello,
When generating XML files google base and other applications, how would remove formatting tags

 

<style> etc in XML/description for example.
Also when generating the files would be possible to ignore the products without price (price 0)
Thanks

Solved:

. "<![CDATA[" .strip_tags($Product['description_short'])." - " .strip_tags($Product['description'])."]]>\n"

Link to comment
Share on other sites

  • 4 months later...
×
×
  • Create New...