# Changing Format in Dashboard Template Node?

**URL:** <https://discourse.nodered.org/t/changing-format-in-dashboard-template-node/11707>\
**Category:** Dashboard\
**Created:** [30 May 2019 15:54 UTC](https://discourse.nodered.org/t/changing-format-in-dashboard-template-node/11707 "2019-05-30T15:54:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcontrada](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@tcontrada](https://discourse.nodered.org/u/tcontrada)\
**Post date:** [30 May 2019 15:54 UTC](https://discourse.nodered.org/t/changing-format-in-dashboard-template-node/11707/1 "2019-05-30T15:54:52Z")

</div>

I am using the Tableify Node with a Dashboard Template Node, but want to use the embedded formatting style within the table html contents. How can I over ride the Dashboard theme for this node only?

Here is the HTML that the Tableify node outputs in msg.payload to the Template Node:

```auto
<table style="font-family:Arial;width:100%;border:1px solid #ccc;border-collapse: collapse;color:#667677;"><thead style="border:1px solid #ccc;background:#6a9ef2;color:white !important; height:50px;padding:2px;"><tr style="border:1px solid #ccc;"><th class="string">applicationHash</th><th class="string">applicationName</th><th class="string">applicationTypeName</th><th class="string">applicationTypeHash</th><th class="string">objType</th></tr></thead><tbody style=""><tr style="border:1px solid #ccc;"><td style="border:1px solid #ccc;text-align:center;padding:3px;" class="string">937189849</td><td style="border:1px solid #ccc;text-align:center;padding:3px;" class="string">CKT4 Compressor Power</td><td style="border:1px solid #ccc;text-align:center;padding:3px;" class="string">Log Group</td><td style="border:1px solid #ccc;text-align:center;padding:3px;" class="string">73</td><td style="border:1px solid #ccc;text-align:center;padding:3px;" class="string">Locator</td></tr></tbody></table>

```

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [30 May 2019 17:32 UTC](https://discourse.nodered.org/t/changing-format-in-dashboard-template-node/11707/2 "2019-05-30T17:32:19Z")

</div>

In the Dashboard site tab set  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/11f9cb209167cf8b3e5faf9dd9f79535d67f8445.png)  
will stop us taking over the theme in the template

---

<div class="post-metadata">

**Author:** ![tcontrada](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@tcontrada](https://discourse.nodered.org/u/tcontrada)\
**Post date:** [31 May 2019 15:24 UTC](https://discourse.nodered.org/t/changing-format-in-dashboard-template-node/11707/3 "2019-05-31T15:24:55Z")

</div>

Well, I set that as you indicate, but the dashboard theme still over rides the table content.  
In the Template Node this is what is populated:  
`<div ng-bind-html="msg.payload"></div>`

What am I missing or not setting correctly?

Thanks...

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [31 May 2019 15:48 UTC](https://discourse.nodered.org/t/changing-format-in-dashboard-template-node/11707/4 "2019-05-31T15:48:43Z")

</div>

Ah right - yes - you need `<div ng-bind-html="msg.payload | trusted"></div>` instead... the trusted filter allows the script tags you have added to not be filtered out.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/7ce6520ae31ad9e5765d800c380729084d58bfe9.png)

---

<div class="post-metadata">

**Author:** ![tcontrada](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@tcontrada](https://discourse.nodered.org/u/tcontrada)\
**Post date:** [31 May 2019 20:29 UTC](https://discourse.nodered.org/t/changing-format-in-dashboard-template-node/11707/5 "2019-05-31T20:29:48Z")

</div>

Second time is a charm...That worked....Nice!
