# Help with text formatting in \`template\` node with output to \`text\` node

**URL:** <https://discourse.nodered.org/t/help-with-text-formatting-in-template-node-with-output-to-text-node/101843>\
**Category:** Dashboard\
**Created:** [30 September 2026 23:53 UTC](https://discourse.nodered.org/t/help-with-text-formatting-in-template-node-with-output-to-text-node/101843 "2026-09-30T23:53:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [30 September 2026 23:53 UTC](https://discourse.nodered.org/t/help-with-text-formatting-in-template-node-with-output-to-text-node/101843/1 "2026-09-30T23:53:36Z")

</div>

(OLD dashboard - just to be clear)

This is what I have now.  
`When: {{time}} Error: {{payload}} id: {{source.id}} type: {{source.type}}`

And it goes - via a few nodes - to a `text` node to be displayed.

But I would like some _styles_/formating too.

This is a bit bland.  
☹

 ![Screenshot from 2026-10-01 09-52-20](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/a/8a3408f3d4dc6400cca11f1702a26a29e7f198a4.jpeg)

I am open to using/trying the ui\_template node.  
(how ever it is spelt.)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [1 October 2026 12:07 UTC](https://discourse.nodered.org/t/help-with-text-formatting-in-template-node-with-output-to-text-node/101843/2 "2026-10-01T12:07:22Z")

</div>

Been a while since I used either Dashboard but if I remember correctly, you need to change the text node output from `{{msg.payload}}` to `{{{msg.payload}}}` to allow AngularJS to treat the input as HTML rather than text. Then you can simply include HTML formatting in your template.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [1 October 2026 21:11 UTC](https://discourse.nodered.org/t/help-with-text-formatting-in-template-node-with-output-to-text-node/101843/3 "2026-10-01T21:11:56Z")

</div>

Bad news.

No seeming to work.

```auto
[{"id":"f4d7facf9a0eae91","type":"inject","z":"c3ec93b2.f3154","g":"e00b697a44223e03","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":" **This** is **a** test","payloadType":"str","x":1080,"y":4750,"wires":[["7a50fe368a22b24a"]]},{"id":"c10d9b53be9818e4","type":"inject","z":"c3ec93b2.f3154","g":"e00b697a44223e03","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Test","payloadType":"str","x":1060,"y":4790,"wires":[["7a50fe368a22b24a"]]},{"id":"7a50fe368a22b24a","type":"junction","z":"c3ec93b2.f3154","g":"e00b697a44223e03","x":1316,"y":4680,"wires":[["2031a14b.2fd91e","e6d3baca.8b0b38"]]},{"id":"e6d3baca.8b0b38","type":"ui_text","z":"c3ec93b2.f3154","g":"e00b697a44223e03","group":"e48399e0.8415c","order":3,"width":"10","height":"4","name":"Flow error","label":"","format":"{{{msg.payload}}}","layout":"row-spread","className":"","style":false,"font":"","fontSize":"","color":"#000000","x":1406,"y":4640,"wires":[]},{"id":"e48399e0.8415c","type":"ui_group","name":"Flow error display","tab":"48f5e285.67a4c4","order":2,"disp":true,"width":"11","collapse":false},{"id":"48f5e285.67a4c4","type":"ui_tab","name":"ALARMS","icon":"mi-notification_important","order":6,"disabled":false,"hidden":false}]

```

Nothing seen with either `inject` button.

Change the `{{{msg.payload}}}` to `{{msg.payload}}` and things are seen, just not _formatted_.

The `template_ui` node is getting tempting to try/use.

😉

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 October 2026 09:01 UTC](https://discourse.nodered.org/t/help-with-text-formatting-in-template-node-with-output-to-text-node/101843/4 "2026-10-02T09:01:39Z")

</div>

We assumed that you were giving it html, but it appears you are trying to send it markdown ` **This** is **a** test`). I don't think the old dashboard has any markdown support.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [2 October 2026 09:11 UTC](https://discourse.nodered.org/t/help-with-text-formatting-in-template-node-with-output-to-text-node/101843/5 "2026-10-02T09:11:48Z")

</div>

Ok, that explains that.

So would `<b>` work?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 October 2026 09:15 UTC](https://discourse.nodered.org/t/help-with-text-formatting-in-template-node-with-output-to-text-node/101843/6 "2026-10-02T09:15:56Z")

</div>

> [@Trying\_to\_learn](#):
>
> So would `<b>` work?

Isn't it easier to try it than ask?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [2 October 2026 09:17 UTC](https://discourse.nodered.org/t/help-with-text-formatting-in-template-node-with-output-to-text-node/101843/7 "2026-10-02T09:17:19Z")

</div>

Yeah, and I'm an idiot.
