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