Escape XML markup
Use the glide.ui.escape_text property to force escape of XML values at the parser level before transmitting them to the client's browser.
Use the glide.ui.escape_text system property to escape XML values at the parser level for the user interface. It prevents reflected and stored cross-site scripting attacks. This property is not applicable in Service Portal.
- & -->
& - < -->
< - > -->
> - " -->
" - ' -->
' - / -->
/
Example: <script>alert('XSS Attack');</script>
Escaping: <script>alert('XSS
Attack');</script>
Ensure the glide.ui.escape_text property exists in the System Properties [sys_properties] table and is set to true.
More information
| Attribute | Description |
|---|---|
| Configuration name | glide.ui.escape_text |
| Configuration type | System Properties (/sys_properties_list.do) |
| Data type | Boolean |
| Recommended value | true |
| Default value | <none> |
| Fallback value | false |
| Category | Validation, sanitization, and encoding |
| Security risk |
|
| Functional impact | None |
| Dependencies and prerequisites | None |