Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mdevils/html-entities
/ functions
Functions
32 in github.com/mdevils/html-entities
⨍
Functions
32
◇
Types & classes
9
↓ 31 callers
Function
decode
( text: string | undefined | null, {level = 'all', scope = level === 'xml' ? 'strict' : 'body'}: Decod
src/index.ts:150
↓ 27 callers
Function
encode
( text: string | undefined | null, {mode = 'specialChars', numeric = 'decimal', level = 'all'}: Encode
src/index.ts:44
↓ 23 callers
Function
decodeEntity
( entity: string | undefined | null, {level = 'all'}: CommonOptions = defaultDecodeEntityOptions )
src/index.ts:139
↓ 9 callers
Function
benchmark
(name: string, tests: {[key: string]: () => void})
benchmark/benchmark.ts:139
↓ 5 callers
Function
section
(sectionName: string, callback: () => void)
benchmark/benchmark.ts:131
↓ 4 callers
Method
decode
(str: string)
benchmark/old/xml-entities.ts:46
↓ 3 callers
Method
encode
(str: string)
benchmark/old/xml-entities.ts:33
↓ 3 callers
Function
generateNamedReferences
(input: string, prev?: GeneratedReferences)
src/named-references.ts:10
↓ 2 callers
Function
ensureSelfLink
(appPath: string)
test/index.test.ts:11
↓ 2 callers
Function
entitityPairsToString
(input: Map<string, string>)
tools/process-named-references.ts:24
↓ 2 callers
Function
getDecodedEntity
( entity: string, references: Record<string, string>, isAttribute: boolean, isStrict: boolean
src/index.ts:104
↓ 1 callers
Function
cleanNodeModulesCache
()
benchmark/benchmark.ts:18
↓ 1 callers
Function
createEscapeMethods
(textToEncode: string)
benchmark/benchmark.ts:120
↓ 1 callers
Function
createHtml4DecodeMethods
(textToDecode: string)
benchmark/benchmark.ts:82
↓ 1 callers
Function
createHtml4EncodeMethods
(textToEncode: string)
benchmark/benchmark.ts:70
↓ 1 callers
Function
createHtml5DecodeMethods
(textToDecode: string)
benchmark/benchmark.ts:55
↓ 1 callers
Function
createHtml5EncodeMethods
(textToEncode: string)
benchmark/benchmark.ts:47
↓ 1 callers
Function
createHtml5EncodeMethodsNonAscii
(textToEncode: string)
benchmark/benchmark.ts:35
↓ 1 callers
Function
createIndexes
(alphaIndex: {[k: string]: string}, charIndex: {[k: string]: {[k: string]: string}})
benchmark/old/html5-entities.ts:144
↓ 1 callers
Function
createRequireTests
(modules: Record<string, string>)
benchmark/benchmark.ts:25
↓ 1 callers
Function
createXmlDecodeMethods
(textToDecode: string)
benchmark/benchmark.ts:107
↓ 1 callers
Function
createXmlEncodeMethods
(textToEncode: string)
benchmark/benchmark.ts:94
↓ 1 callers
Method
encodeNonASCII
(str: string)
benchmark/old/xml-entities.ts:107
Method
decode
(str: string)
benchmark/old/html5-entities.ts:12
Method
decode
(str: string)
benchmark/old/html4-entities.ts:22
Method
encode
(str: string)
benchmark/old/html5-entities.ts:41
Method
encode
(str: string)
benchmark/old/html4-entities.ts:51
Method
encodeNonASCII
(str: string)
benchmark/old/html5-entities.ts:115
Method
encodeNonASCII
(str: string)
benchmark/old/html4-entities.ts:101
Method
encodeNonUTF
(str: string)
benchmark/old/html5-entities.ts:73
Method
encodeNonUTF
(str: string)
benchmark/old/xml-entities.ts:73
Method
encodeNonUTF
(str: string)
benchmark/old/html4-entities.ts:70