adds loose_unicode option which replaces badly formed unicode (escaped non-characters and restricted codepoints, as well as partial surrogates) with u+fffd instead of throwing an error

This commit is contained in:
alisdair sullivan 2011-07-27 01:59:03 -07:00
parent 51d27bb3b5
commit 653205501c
15 changed files with 121 additions and 10 deletions

View file

@ -34,6 +34,7 @@
-type jsx_opts() :: [jsx_opt()].
-type jsx_opt() :: {multi_term, true | false}
| loose_unicode
| {encoding, auto
| utf8
| utf16