You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could use new handlebars filter to escape any string, so I can use it in JSON templates. Currently, some inputs can break JSON formatting in the template. The following characters should be escaped:
Backspace to be replaced with \b
Form feed to be replaced with \f
Newline to be replaced with \n
Carriage return to be replaced with \r
Tab to be replaced with \t
Double quote to be replaced with "
Backslash to be replaced with \
Example
template:
{
"body": "{{body 'Body'}}",
}
input: Body=Hello "World"
current output:
{
"body": "Hello "World"",
}
expected output:
{
"body": "Hello \"World\"",
}
The text was updated successfully, but these errors were encountered:
I could use new handlebars filter to escape any string, so I can use it in JSON templates. Currently, some inputs can break JSON formatting in the template. The following characters should be escaped:
Example
template:
input: Body=Hello "World"
current output:
expected output:
The text was updated successfully, but these errors were encountered: