Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] playground: correctly escape backslashes and interpolation sigils
Previously, if you used a backslash in a template on the playground, it would be interpreted as an escape sequence, and if you wrote "${" it would likely crash, as it would be treated as an interpolation sigil in the context of the script element injected inside the playground's iframe. A previous fix already escaped backticks, this commit completes the escaping by escaping the two other things that have special meaning within template literals.
- Loading branch information