(textToDecode: string)
| 80 | } |
| 81 | |
| 82 | function createHtml4DecodeMethods(textToDecode: string) { |
| 83 | const strict: DecodeOptions = {level: 'html4', scope: 'strict'}; |
| 84 | const body: DecodeOptions = {level: 'html4', scope: 'body'}; |
| 85 | const attribute: DecodeOptions = {level: 'html4', scope: 'attribute'}; |
| 86 | return { |
| 87 | 'html-entities.decode - html4, strict': () => decode(textToDecode, strict), |
| 88 | 'html-entities.decode - html4, body': () => decode(textToDecode, body), |
| 89 | 'html-entities.decode - html4, attribute': () => decode(textToDecode, attribute), |
| 90 | '(old) Html4Entities.decode': () => html4Entities.decode(textToDecode) |
| 91 | }; |
| 92 | } |
| 93 | |
| 94 | function createXmlEncodeMethods(textToEncode: string) { |
| 95 | const nonAsciiPrintable: EncodeOptions = {level: 'xml', mode: 'nonAsciiPrintable'}; |
no test coverage detected
searching dependent graphs…