Reviewer AMC: Add xml escaping function

Possibly, as discussed I'll leave it with you investigate.