Skip to content

[DOCS-13661] Document triple curly brace syntax for raw/unencoded output#35302

Open
estherk15 wants to merge 1 commit intomasterfrom
esther/docs-13661-triple-curly-brace-variable
Open

[DOCS-13661] Document triple curly brace syntax for raw/unencoded output#35302
estherk15 wants to merge 1 commit intomasterfrom
esther/docs-13661-triple-curly-brace-variable

Conversation

@estherk15
Copy link
Contributor

@estherk15 estherk15 commented Mar 16, 2026

What does this PR do? What is the motivation?

Fixes DOCS-13661

Expands the "Character escape" section on the Monitor Notification Variables page to document the triple curly brace syntax ({{{variable}}}) for raw, unencoded output.

Changes include:

  • Clarifies that {{variable}} HTML-encodes output by default (with concrete examples of what gets encoded)
  • Adds a comparison table showing {{variable}} vs {{{variable}}}
  • Adds a practical example using {{{check_message}}}
  • Explains the real-world impact: HTTP Check monitor URLs with query parameters break when & is HTML-encoded

This behavior has been a recurring support topic (MNTS-89137, MNTS-89854, SFDC 00012692).

Merge instructions

Merge readiness:

  • Ready for merge

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@estherk15 estherk15 marked this pull request as ready for review March 16, 2026 16:43
@estherk15 estherk15 requested a review from a team as a code owner March 16, 2026 16:43
@github-actions
Copy link
Contributor

Preview links (active after the build_preview check completes)

Modified Files

@maycmlee maycmlee self-assigned this Mar 16, 2026
### Character escape

Variable content is escaped by default. To prevent content such as JSON or code from being escaped, use triple braces instead of double braces, for example: `{{{event.text}}}`.
Variable content is HTML-encoded by default. For example, special characters like `&` and `'` are converted to `&amp;` and `&#x27;` in the rendered output. To output raw, unencoded content, use triple curly braces instead of double curly braces:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean if you put this in the notification message template:

This & that

In the actual notification received, you'd see:

This &amp; that

If so, maybe this could make it clearer:

Suggested change
Variable content is HTML-encoded by default. For example, special characters like `&` and `'` are converted to `&amp;` and `&#x27;` in the rendered output. To output raw, unencoded content, use triple curly braces instead of double curly braces:
Variable content is HTML-encoded by default. For example, if a notification message contains special characters like `&` and `'`, the characters are converted to `&amp;` and `&#x27;` in the rendered output. To output raw, unencoded content, use triple curly braces instead of double curly braces:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants