(textToEncode: string)
| 68 | } |
| 69 | |
| 70 | function createHtml4EncodeMethods(textToEncode: string) { |
| 71 | const nonAsciiPrintable: EncodeOptions = {level: 'html4', mode: 'nonAsciiPrintable'}; |
| 72 | const extensive: EncodeOptions = {level: 'html4', mode: 'extensive'}; |
| 73 | const nonAscii: EncodeOptions = {level: 'html4', mode: 'nonAscii'}; |
| 74 | return { |
| 75 | 'html-entities.encode - html4, nonAscii': () => encode(textToEncode, nonAscii), |
| 76 | 'html-entities.encode - html4, nonAsciiPrintable': () => encode(textToEncode, nonAsciiPrintable), |
| 77 | 'html-entities.encode - html4, extensive': () => encode(textToEncode, extensive), |
| 78 | '(old) Html4Entities.encodeNonASCII': () => html4Entities.encodeNonASCII(textToEncode) |
| 79 | }; |
| 80 | } |
| 81 | |
| 82 | function createHtml4DecodeMethods(textToDecode: string) { |
| 83 | const strict: DecodeOptions = {level: 'html4', scope: 'strict'}; |
no test coverage detected
searching dependent graphs…