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

Function astralReplacer

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

Source from the content-addressed store, hash-verified

3611}
3612
3613function astralReplacer(c){
3614 // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
3615 var high = c.charCodeAt(0);
3616 var low = c.charCodeAt(1);
3617 var codePoint = (high - 0xD800) * 0x400 + low - 0xDC00 + 0x10000;
3618 return "&#x" + codePoint.toString(16).toUpperCase() + ";";
3619}
3620
3621function getInverse(inverse, re){
3622 function func(name){

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected