PHP - Is htmlentities() sufficient for creating xml-safe values?

Posted by John Himmelman on Stack Overflow See other posts from Stack Overflow or by John Himmelman
Published on 2010-05-12T21:08:20Z Indexed on 2010/05/12 21:14 UTC
Read the original article Hit count: 224

Filed under:
|
|

I'm building an XML file from scratch and need to know if htmlentities() converts every character that could potentially break an XML file (and possibly UTF-8 data)? The values will be from a twitter/flickr feed, so I need to be sure!

© Stack Overflow or respective owner

Related posts about php

Related posts about Xml