MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / singleCharReplacer

Function singleCharReplacer

lib/sanitize-html.js:3609–3611  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

3607 re_astralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
3608
3609function singleCharReplacer(c){
3610 return "&#x" + c.charCodeAt(0).toString(16).toUpperCase() + ";";
3611}
3612
3613function astralReplacer(c){
3614 // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected