Answer by Chris Petersn for parsing xml with php generates error for street names with apostrophes
You need to use htmlentities() to encode your data. Changing your quotes will just cause problems when the other quote is used. You should always use htmlentities().
Monday 21st August 2017 8:27 am