Jelly escaping types
-
- UpdatedJan 30, 2025
- 1 minute read
- Yokohama
- Building applications
You use different methods when escaping characters in JavaScript and HTML. JavaScript uses the backslash character, and HTML uses the ampersand character.
There are two different types of escaping that is required when generating output from Jelly:
- JavaScript
- HTML
The escaping for each of these consists of the following types.
You can also escape HTML using the getHTMLValue() function which will enforce all line breaks and escape the characters mentioned above. It can be used as follows:
Add escaping to a Jelly replacement
You can handle character escaping in Jelly files. XML escaping behavior can be modified only by users with the security_admin role.
About this task
Procedure
${expression}
or
$[expression]
indicating the escaping to be
performed.
The prefix tells the system to take the result of the expression and escape it before outputting. The escaping may be combined by specifying a comma-separated list of prefixes: