This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngSanitize cant escape all unicode characters #5088
Closed
Description
ngSanitize has a bug escaping unicode chars that arent in the range of charCodeAt, see the fiddle below. Removing this replace function fixes the problem, but i was wondering why this is done in the first place. Unicode chars can be placed inside documents safely, especially since utf-8 became a standard charset these days.
http://jsfiddle.net/jtangelder/SQf7w/
angular.js/src/ngSanitize/sanitize.js
Line 370 in a7e12b7
I can do a PR if it's ok!