Created
October 13, 2015 10:07
-
-
Save XinyueZ/dc2ff3a6c0bae2b8c9ae to your computer and use it in GitHub Desktop.
Common examples of Escapes elements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var escapes = { | |
| "'": "'", | |
| '\\': '\\', | |
| '\r': 'r', | |
| '\n': 'n', | |
| '\u2028': 'u2028', | |
| '\u2029': 'u2029' | |
| }; | |
| var escapeMap = { | |
| '&': '&', | |
| '<': '<', | |
| '>': '>', | |
| '"': '"', | |
| "'": ''', | |
| '`': '`' | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment