ohler55/ox — pull request #14 by edanaher (2012-08-06 21:24:02+00:00)
Title: Escape special characters when writing attributes

I found an error when parsing dumped XML; an attribute value with an ampersand is written out unescaped, and parsing it back in then failed.

This one line fix seems to work, and I added a quick test demonstrating the case. (Not the cleanest test, but I tried to roughly follow the style of existing tests).