fix(ngSanitize): encode surrogate pair properly
The encodeEndities function encode non-alphanumeric characters to entities with charCodeAt. charCodeAt does not return one value when their unicode codeponts is higher than 65,356. It returns surrogate pair, and this is why the Emoji which has higher codepoints is garbled. We need to handle them properly. Closes #5088 Closes #6911
Y
Yutaka Yamaguchi committed
627b0354ec35bef5c6dbfab6469168c2fadcbee5
Parent: 8d18038
Committed by Caitlin Potter <caitpotter88@gmail.com>
on 5/2/2014, 9:48:57 PM