I am working with the GUS product feeds on CJ (Kays, Argos Additions & Marshall Ward) which I receive in XML format. To extract data to populate a database, I use the $advertisercategory field which works fine when there is no ampersand within it but does not when there is:
For example, in the Kays feed for womens clothing, there is a $advertisercategory field, "shirts & blouses".
However, the if statement below will not evaluate true when it includes an ampersand while it works fine for any $advertisercategory which does not include ampersands. I have tried replacing the & with & but still does not work.
if ($advertisercategory=="shirts & blouses")
Can someone point out the solution to this please?