PHP import script ignoring xml tags containing html
In order to import products into our website that was built using Magento, we export an xml file from our point of sale program and this is uploaded to our web server. A php script is then run and a csv file is created. We then use the Magmi php plugin to import the products. The problem I'm having is that if any html is included in the xml file then that xml tag is not imported into Magento. The following is an example of the code in the xml file containing some html:
<LongDescription><![CDATA[ Some description goes here.<br /> <br /> <span style="color: #bc1a31;">SPECIAL PROMOTION: Some promotional description goes here.</span> ]]></LongDescription>
When the import script is run, then the above tag gets ignored. You'll notice in the above snippet that the following tags have been inserted into the xml tag:
These tags were automatically inserted into the xml file when it was exported from our Point of Sale program (they weren't intentionally added) so I'm wondering if anyone could tell me whether it is in fact those tags that are preventing the php import script from accepting the xml tag and importing the information into Magento?
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.