touv/node-xml-writer — pull request #15 by jscheid (2014-11-13 00:20:10+00:00)
Title: Escape according to Canonical XML 1.0.

See .

First and foremost, this change allows adding linefeeds, tabs and carriage returns to attribute values. This was not possible before, since such characters did not get escaped and without escaping a conforming XML reader will replace them by blanks. [1]

While at it, this change escapes attribute values according to the Canonical XML 1.0 specification. In particular, in attribute values greater-than no longer gets escaped.

[1] http://www.w3.org/TR/2004/REC-xml-20040204/#AVNormalize