# Fix characters changed by template node

**URL:** <https://discourse.nodered.org/t/fix-characters-changed-by-template-node/67661>\
**Category:** General\
**Created:** [13 September 2022 16:00 UTC](https://discourse.nodered.org/t/fix-characters-changed-by-template-node/67661 "2022-09-13T16:00:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![josechu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josechu/32/67504_2.png) [@josechu](https://discourse.nodered.org/u/josechu)\
**Post date:** [13 September 2022 16:00 UTC](https://discourse.nodered.org/t/fix-characters-changed-by-template-node/67661/1 "2022-09-13T16:00:53Z")

</div>

Hi,

Im using a template node tu build an email body with some payload variables, like this:

```auto
<b>Date:</b> {{payload.0.fecha}}
<br>
<br>
Comentario1: {{payload.1.texto}}

```

It's coming good but when any of that values, in this case payload.1.texto, has any line break like `<br>` the output of the template node is changed to `&lt;br&gt;`, and the email only render the `<br>` that I have entered manually in the mustache template, but not the ones coming inside the `payload.1.texto`.

Any hint? thanks!

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [13 September 2022 16:10 UTC](https://discourse.nodered.org/t/fix-characters-changed-by-template-node/67661/2 "2022-09-13T16:10:37Z")

</div>

As described in the sidebar help of the Template node, you should use `{{{ triple brackets }}}` to avoid it escape HTML entities.

---

<div class="post-metadata">

**Author:** ![josechu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josechu/32/67504_2.png) [@josechu](https://discourse.nodered.org/u/josechu)\
**Post date:** [13 September 2022 16:29 UTC](https://discourse.nodered.org/t/fix-characters-changed-by-template-node/67661/3 "2022-09-13T16:29:12Z")

</div>

Thank you so much @knolleary , that was it. I tested that in a value that didn't has any   
 on it and I thought it wasnt doing anything, but it was just the wrong place to test it :), many thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 September 2022 16:29 UTC](https://discourse.nodered.org/t/fix-characters-changed-by-template-node/67661/4 "2022-09-27T16:29:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
