# Escaping Handlebars expressions for documentation

**URL:** <https://discuss.emberjs.com/t/escaping-handlebars-expressions-for-documentation/5073>\
**Category:** Uncategorized\
**Created:** [April 29, 2014, 3:03pm UTC](https://discuss.emberjs.com/t/escaping-handlebars-expressions-for-documentation/5073 "2014-04-29T15:03:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asaf000](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@asaf000](https://discuss.emberjs.com/u/asaf000)\
**Post date:** [April 29, 2014, 3:03pm UTC](https://discuss.emberjs.com/t/escaping-handlebars-expressions-for-documentation/5073/1 "2014-04-29T15:03:53Z")

</div>

Hey,

I need to document handlebars expressions and my the docs section is written in Ember too,

So, is there a way to escape handlebars expressions?

I tried backslashing such `\\{`

but then the output result is resulted with `\\` too.

I can use & #125; but this makes my code super ugly.

Is there a way to write maybe a helper to read the template as a string before it’s being parsed? or other alternatives?

Thanks.

---

<div class="post-metadata">

**Author:** ![mmun](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mmun/32/14872_2.png) [@mmun](https://discuss.emberjs.com/u/mmun)\
**Post date:** [April 30, 2014, 5:03am UTC](https://discuss.emberjs.com/t/escaping-handlebars-expressions-for-documentation/5073/2 "2014-04-30T05:03:15Z")

</div>

One backslash will escape a mustache inside of a template:

```handlebars
\{{foo}}

```

will output the string

```auto
{{foo}}

```

Example: [http://emberjs.jsbin.com/selof/1/edit](http://emberjs.jsbin.com/selof/1/edit)

---

<div class="post-metadata">

**Author:** ![asaf000](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@asaf000](https://discuss.emberjs.com/u/asaf000)\
**Post date:** [April 30, 2014, 5:51am UTC](https://discuss.emberjs.com/t/escaping-handlebars-expressions-for-documentation/5073/3 "2014-04-30T05:51:34Z")

</div>

Cool, I always tried two 😊
