(textToEncode: string)
| 92 | } |
| 93 | |
| 94 | function createXmlEncodeMethods(textToEncode: string) { |
| 95 | const nonAsciiPrintable: EncodeOptions = {level: 'xml', mode: 'nonAsciiPrintable'}; |
| 96 | const extensive: EncodeOptions = {level: 'xml', mode: 'extensive'}; |
| 97 | const nonAscii: EncodeOptions = {level: 'xml', mode: 'nonAscii'}; |
| 98 | return { |
| 99 | 'html-entities.encode - xml, nonAscii': () => encode(textToEncode, nonAscii), |
| 100 | 'html-entities.encode - xml, nonAsciiPrintable': () => encode(textToEncode, nonAsciiPrintable), |
| 101 | 'html-entities.encode - xml, extensive': () => encode(textToEncode, extensive), |
| 102 | '(old) XmlEntities.encodeNonASCII': () => xmlEntities.encode(textToEncode), |
| 103 | 'entities.encodeXML': () => entities.encodeXML(textToEncode) |
| 104 | }; |
| 105 | } |
| 106 | |
| 107 | function createXmlDecodeMethods(textToDecode: string) { |
| 108 | const strict: DecodeOptions = {level: 'xml', scope: 'strict'}; |
no test coverage detected
searching dependent graphs…