Skip to content


PHP to clean up iffy XML

OK, this is an icky hack, but it’ll remove stray & from crappy XML:

$data = preg_replace( “/&(?!amp;|gt;|lt;|quot;)/”, “”, $data );

Posted in Uncategorized.

Tagged with , , .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.