I\'m needing to load an XML document into PHP that comes from an external source. The XML does not declare it\'s encoding and contains illegal characters like &
&
If tidy extension is not an option, you may consider htmlpurifier.