-
Notifications
You must be signed in to change notification settings - Fork 989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line separator (U+2028) and paragraph separator (U+2029) Got JS Exception SyntaxError #402
Labels
Comments
I found the same bug on cordova-osx. I discovered the same issue came up on cordova-android@6, not sure if it is still an issue on cordova-android@7 or not. I investigate and report next week. |
As per the comments and justification in #403, I'm going to close this as "not planned". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When Objective-c call JavaScript use function
stringByEvaluatingJavaScriptFromString:
with Line separator (U+2028) or paragraph separator (U+2029), JavaScript will get error.In
CDVUIWebViewEngine.m
, functionevaluateJavaScript:completionHandler:
. The caller may pass in these special characters.Before callstringByEvaluatingJavaScriptFromString:
,we can do some filtering.The text was updated successfully, but these errors were encountered: