sanitize-xml-stringNot all UTF-8 characters are valid in XML. This module offers two methods,
validate, that treat a given string and prepare it for use with XML. Valid characters were taken from https://www.w3.org/TR/xml11/#charsets, which includes any Unicode character, excluding the surrogate blocks, FFFE, and FFFF (
[#x1-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]).
:warning: To deal with emoji and other special unicode use cases, ES6 added a
LicenseMIT, please see LICENSE for details.