Skip to content

Line separator (U+2028) and paragraph separator (U+2029) Got JS Exception SyntaxError #402

@crmo

Description

@crmo

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, function evaluateJavaScript:completionHandler:. The caller may pass in these special characters.Before call stringByEvaluatingJavaScriptFromString:,we can do some filtering.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions