Closed mockobject closed 12 years ago
I've added your suggestion but with a different implementation (a table with the replacements seems faster than a sequence of gsub calls). Anyway, thanks!
Oh cool, yeah, that change with the tables seems a lot better. Thanks a bunch.
This patch includes an update that builds in escaping of special characters passed in as contents of xml tags without re-escaping & in escape codes. This change should work fine for people already escaping their xml tag contents and will escape them when not already escaped.
I don't know if you would be interested in this change or not but since it is backwards compatible with people who have already escaped their strings I figured it might be worth offering.