Skip to content

Replace < with \x3C or \u003C in JSON strings.Β #407

@mpkorstanje

Description

@mpkorstanje

πŸ€” What's the problem you're trying to solve?

Writing json in script tags is complicated.

✨ What's your proposed solution?

Replace < with \x3C or \u003C in JSON strings as per 4.12.1.3 Restrictions for contents of script elements.

⛏ Have you considered any alternatives or workarounds?

No response

πŸ“š Any additional context?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions