javascript - Uncaught Syntaxerror: invalid or unexpected token for Unicode line separator \u2028 -


does knows how javascript processes unicode character , decides invalid?

errorimage
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

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -