moebius Posted June 27, 2008 Share Posted June 27, 2008 It seems that XML parsers do not like html entities like é so I need some way of converting these html entities to something that is compatible with xml. I can't convert them into their raw format because that could cause more trouble. Is there a function that converts html entities into their numerical equivalents? For example: é -> é Link to comment https://forums.phpfreaks.com/topic/112123-convert-html-entities-for-xml/ Share on other sites More sharing options...
Guest Posted June 27, 2008 Share Posted June 27, 2008 http://uk.php.net/manual/en/function.htmlspecialchars.php Link to comment https://forums.phpfreaks.com/topic/112123-convert-html-entities-for-xml/#findComment-576018 Share on other sites More sharing options...
moebius Posted June 27, 2008 Author Share Posted June 27, 2008 Yeah I looked through those functions, but there doesn't seem to be anything that converts to the numerical/unicode entity. Only from html entity to acsii character and vice versa. Link to comment https://forums.phpfreaks.com/topic/112123-convert-html-entities-for-xml/#findComment-576359 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.