> For the complete documentation index, see [llms.txt](https://docs.developers.symphony.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.developers.symphony.com/bots/messages/overview-of-messageml/messageml-basic-format-tags/special-characters.md).

# Special Characters

## Tags

The Apache Freemarker uses the HTML output format by default. In some cases, special characters placed within the MessageML must be HTML-escaped, otherwise, the request sending the MessageML will receive a 400 error response. The following are examples of valid HTML-escaping:

<table data-header-hidden><thead><tr><th width="104">Character</th><th width="127">HTML escaping</th><th width="204">Required escaping</th><th>messageML example</th></tr></thead><tbody><tr><td>Character</td><td>HTML escaping</td><td>Required escaping</td><td>messageML example</td></tr><tr><td><code>&#x3C;</code></td><td><code>&#x26;lt;</code></td><td>Yes</td><td><code>&#x3C;messageML>&#x26;lt;&#x3C;/messageML></code></td></tr><tr><td><code>&#x26;</code></td><td><code>&#x26;#38;</code></td><td>Yes</td><td><code>&#x3C;messageML>&#x26;#38; &#x3C;/messageML></code></td></tr><tr><td><code>$</code></td><td><code>&#x26;#36;</code></td><td>Yes The $ character only needs to be escaped if it comes before the { character.</td><td><code>&#x3C;messageML>&#x26;#36;{}&#x3C;/messageML></code></td></tr><tr><td><code>#</code></td><td><code>&#x26;#35;</code></td><td>Yes The # character only needs to be escaped if it comes before the { character.</td><td><code>&#x3C;messageML>&#x26;#35;{}&#x3C;/messageML></code></td></tr><tr><td><code>></code></td><td><code>&#x26;gt;</code></td><td>No</td><td><code>&#x3C;messageML>&#x26;gt;&#x3C;/messageML></code></td></tr><tr><td><code>"</code></td><td><code>&#x26;quot;</code></td><td>No</td><td><code>&#x3C;messageML>&#x26;quot;&#x3C;/messageML></code></td></tr><tr><td><code>'</code></td><td><code>&#x26;#39;</code></td><td>No</td><td><code>&#x3C;messageML>&#x26;#39;&#x3C;/messageML></code></td></tr><tr><td><code>*</code></td><td><code>&#x26;#42;</code></td><td>No</td><td><code>&#x3C;messageML>&#x26;#42;&#x3C;/messageML></code></td></tr><tr><td><code>%</code></td><td><code>&#x26;#37;</code></td><td>No</td><td><code>&#x3C;messageML>&#x26;#37;&#x3C;/messageML></code></td></tr></tbody></table>

{% hint style="warning" %}
Supported on Android starting with the release of the Symphony Messsaging Mobile App v26.10. Support for iOS will be available in a later version.
{% endhint %}

## Examples

Here after you can find an example of a message sent by a bot and containing these special characters as well as the structure of the messageML sent:

{% tabs %}
{% tab title="Message containing special characters" %}
![](https://3121587452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MB51RkjSmfA_ejydg4M-3415978100%2Fuploads%2FsNKFr7BQw8nflvJCywYG%2Fmml_special_characters.png?alt=media\&token=5f4a9468-7740-44b0-b0d7-c11f9e806d35)
{% endtab %}

{% tab title="messageML structure" %}

```markup
<messageML>
    These are special characters:
    <ul>
        <li>&lt;;</li>
        <li>&#38;;</li>
        <li>$ or &#36;;</li>
        <li># or &#35;;</li>
        <li>> or &gt;;</li>
        <li>" or &quot;;</li>
        <li>' or &#39;;</li>
        <li>* or &#42;;</li>
        <li>% or &#37;.</li>
    </ul>
</messageML>
```

<figure><img src="https://3121587452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MB51RkjSmfA_ejydg4M-3415978100%2Fuploads%2Fuwq08ogSQlMznF9XjEqV%2Fspecial_characters.png?alt=media&amp;token=ae5b9117-6808-47dc-bfff-73a94098f2bb" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.developers.symphony.com/bots/messages/overview-of-messageml/messageml-basic-format-tags/special-characters.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
