Implement javascript string escaping.
This commit is contained in:
@@ -11,5 +11,5 @@
|
||||
"object": {
|
||||
"foo": "bar"
|
||||
},
|
||||
"special_characters": "<>&\"'"
|
||||
"special_characters": "<>xx\b&\"'\t\f\n\r\\"
|
||||
}
|
||||
|
||||
@@ -20,3 +20,9 @@ Object html escaping disabled: {object|s}{~n}
|
||||
Object stringified: {object|js}{~n}
|
||||
Object stringified and parsed: {object|js|jp}{~n}
|
||||
Object stringified, html escaping disabled, parsed, stringified, and html escaped: {object|js|s|jp|js|h}{~n}
|
||||
|
||||
Special characters: {special_characters}{~n}
|
||||
Special characters html escaping disabled and javascript escaped: {special_characters|s|j}{~n}
|
||||
Special characters javascript escaped and html escaping disabled: {special_characters|j|s}{~n}
|
||||
Special characters javascript escaped once: {special_characters|j}{~n}
|
||||
Special characters javascript escaped twice: {special_characters|j|j}{~n}
|
||||
|
||||
Reference in New Issue
Block a user