# Avoiding HTML encoding in function return values

By default the handlebars engine will HTML escape every value it returns into the template.

What this means is that if the value returned from any function contains one of the HTML special characters, then they will be replaced with their escaped equivalent.

| Character | Description       | Escaped Equivalent  |
| --------- | ----------------- | ------------------- |
| `&`       | Ampersand         | `&amp;`             |
| `<`       | Less than         | `&lt;`              |
| `>`       | Greater than      | `&gt;`              |
| `"`       | Double quote      | `&quot;`            |
| `'`       | Single quote      | `&apos;` or `&#39;` |
| `©`       | Copyright symbol  | `&copy;`            |
| `®`       | Registered symbol | `&reg;`             |
| `™`       | Trademark symbol  | `&trade;`           |

In order to avoid this behavior, you need to enclose the function in triple handlebar syntax.

for example:

```handlebars
{{faker 'Question'}} 
```

might return

```
You probably haven&apos;t heard of them?
```

where as, if used with triple handlebars:

```handlebars
{{{faker 'Question'}}} 
```

might return

```
You probably haven't heard of them?
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloud.hoverfly.io/create-simulations/using-templating-in-simulations/avoiding-html-encoding-in-function-return-values.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
