(textToEncode: string)
| 60 | } |
| 61 | |
| 62 | function createHtml4EncodeMethods(textToEncode: string) { |
| 63 | const nonAsciiPrintable: EncodeOptions = {level: 'html4', mode: 'nonAsciiPrintable'}; |
| 64 | const extensive: EncodeOptions = {level: 'html4', mode: 'extensive'}; |
| 65 | const nonAscii: EncodeOptions = {level: 'html4', mode: 'nonAscii'}; |
| 66 | return { |
| 67 | 'html-entities.encode - html4, nonAscii': () => encode(textToEncode, nonAscii), |
| 68 | 'html-entities.encode - html4, nonAsciiPrintable': () => encode(textToEncode, nonAsciiPrintable), |
| 69 | 'html-entities.encode - html4, extensive': () => encode(textToEncode, extensive), |
| 70 | '(old) Html4Entities.encodeNonASCII': () => html4Entities.encodeNonASCII(textToEncode) |
| 71 | }; |
| 72 | } |
| 73 | |
| 74 | function createHtml4DecodeMethods(textToDecode: string) { |
| 75 | const strict: DecodeOptions = {level: 'html4', scope: 'strict'}; |
no test coverage detected