MCPcopy Create free account
hub / github.com/mdevils/html-entities / createHtml5EncodeMethods

Function createHtml5EncodeMethods

benchmark/benchmark.ts:47–53  ·  view source on GitHub ↗
(textToEncode: string)

Source from the content-addressed store, hash-verified

45}
46
47function createHtml5EncodeMethods(textToEncode: string) {
48 const extensive: EncodeOptions = {level: 'html5', mode: 'extensive'};
49 return {
50 'html-entities.encode - html5, extensive': () => encode(textToEncode, extensive),
51 'entities.encodeHTML': () => entities.encodeHTML(textToEncode)
52 };
53}
54
55function createHtml5DecodeMethods(textToDecode: string) {
56 const strict: DecodeOptions = {level: 'html5', scope: 'strict'};

Callers 1

benchmark.tsFile · 0.85

Calls 1

encodeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…