javascript - Uncaught Syntaxerror: invalid or unexpected token for Unicode line separator \u2028 -
does knows how javascript processes unicode character , decides invalid?
shown in attached image, has entered text has \u2028 character in <textarea>
.
now throws error when page opened , goes responsive.
can check text such characters @ compile time?
i can't use regex directly save me 1 character or cant use range of separators or control characters of unicode because application localized , don't want take risk of skipping data mentioning range of chars.
so wanted know possible check string validating javascript @ runtime?
Comments
Post a Comment