--- title: Escape XML markup description: 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. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-security/instance-security-hardening-settings/sc-escape-xml.html release: australia product: Instance Security Hardening Settings classification: instance-security-hardening-settings topic_type: reference last_updated: "2026-03-13" reading_time_minutes: 1 breadcrumb: [Validation, sanitization, and encoding, Hardening settings, Platform Security] --- # 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. Cross-site scripting occurs when an attacker injects malicious JavaScript into an entry point. The platform/application fails to escape the malicious JavaScript before transmitting it to the victim's browser for execution. Escaping in this context means the following: - **&** --> `&` - **<** --> `<` - **>** --> `>` - **"** --> `"` - **'** --> `'` - **/** --> `/` Example: `` 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**. **Warning:** This is a safe harbor property, meaning the value can't be altered once it's changed. It is non-revertible. ## 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/validation-sanitization-encoding.md)
Security risk - Severity score: 8.8 - CVSS rating: High - Security risk details: If **glide.ui.escape\_text** is not set to the recommended value of **true**, then XML values will not be escaped at the parser level for the user interface; this will leave jelly templates susceptible to reflected and stored cross site scripting attacks.
Functional impact None
Dependencies and prerequisites None
**Parent Topic:**[Validation, sanitization, and encoding](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/validation-sanitization-encoding.md)