Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozfreddyb/cse
context-sensitive escaping
https://github.com/mozfreddyb/cse
Last synced: 19 days ago
JSON representation
context-sensitive escaping
- Host: GitHub
- URL: https://github.com/mozfreddyb/cse
- Owner: mozfreddyb
- License: mpl-2.0
- Created: 2016-02-10T15:33:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T15:42:09.000Z (almost 9 years ago)
- Last Synced: 2023-04-10T18:54:55.648Z (over 1 year ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
cse stands for context-sensitive escaping
========================================context stands for the parser state when
parsing a HTML document.escaping stands for replacing characters
so that templating input does not modify
the current context.Example:
`var foo = \`click me\``
If you want to escape `foo` in a context-sensitive
way you need to make sure that, the parser will remain
in the "a element, href attribute" state when the input
has been processed