¡@

Home 

javascript Programming Glossary: charvalue

How to escape HTML

http://stackoverflow.com/questions/3043775/how-to-escape-html

u0000 u001f u0080 uFFFF g function match var high low charValue rep Get the character value handling surrogate pairs if match.length.. match.charCodeAt 0 0xD800 low match.charCodeAt 1 0xDC00 charValue high 0x400 low 0x10000 else Not a surrogate pair the value.. Not a surrogate pair the value is the Unicode code point charValue match.charCodeAt 0 See if we have a mapping for it rep entityMap..