I am trying to output the text from xml through an html file.Xml file is in UTF-8 format.I saved the string after converting by htmlentities($subcat->Name,ENT_QUOTES, "UTF-8").String saved as £1.89 - £3.99 per M² in xml.
While displaying i used htmlentities_decode($cat->Name,ENT_QUOTES).But i am getting this error
Entity ‘Acirc’ not defined.
Entity ‘pound’ not defined
I wonder what went wrong!
Do not use
htmlentities()in the first place – most HTML entities are not supported in XML.Use the actual character data instead.
To avoid
<and>in the data breaking the XML, wrap the data in CDATA blocks.Example: