adds {escaped_unicode, replace} option that replaces illegal escape sequences with the unicode replacement character u+fffd when encountered

This commit is contained in:
alisdair sullivan 2011-07-22 23:47:35 -07:00
parent b4eaf15dbe
commit 66f5e0b48a
6 changed files with 56 additions and 9 deletions

View file

@ -33,7 +33,7 @@
-type jsx_opts() :: [jsx_opt()].
-type jsx_opt() :: {escaped_unicode, ascii | codepoint | none}
-type jsx_opt() :: {escaped_unicode, ascii | codepoint | replace | none}
| {multi_term, true | false}
| {encoding, auto
| utf8