in reply to Re: Unescaped entities in XML
in thread Regex to encode entities in XML

Hmm, maybe the title should mention 'encoding' rather than 'escaping'. (done)

I need to turn ¶ into ß not %B6 as uri_escape does - and really just want to extend that regex, or use a series of them, to encode all those nasty characters.