# HTML panel plugin - using data in html code

**URL:** <https://community.grafana.com/t/html-panel-plugin-using-data-in-html-code/48835>\
**Category:** Grafana\
**Created:** [June 12, 2021, 12:40am UTC](https://community.grafana.com/t/html-panel-plugin-using-data-in-html-code/48835 "2021-06-12T00:40:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![anon70503803](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@anon70503803](https://community.grafana.com/u/anon70503803)\
**Post date:** [June 15, 2021, 10:44pm UTC](https://community.grafana.com/t/html-panel-plugin-using-data-in-html-code/48835/2 "2021-06-15T22:44:04Z")

</div>

Hi @donatod

Have you set Have you set `disable_sanitize_html` to `true` in your configurations? You need to do that starting with v7.

See this thread for more details:

> [@How to add HTML Code in Grafana 7](https://community.grafana.com/t/how-to-add-html-code-in-grafana-7/47503/2):
>
> Hi @barryaljawari This still works. Here is your html code on my local instance running Grafana 8.0.2: There was a lot of [work done on the Text Panel](https://github.com/grafana/grafana/pull/26413) between Grafana 6 and 7. Have you set disable\_sanitize\_html to true in your configurations? You need to do that starting with v7: docker run -d -p 3000:3000 "GF\_PANELS\_DISABLE\_SANITIZE\_HTML=true" grafana/grafana:8.0.2 NOTE: The default is false because this setting leaves you more exposed to XSS atta…

---

_[View the full topic](https://community.grafana.com/t/html-panel-plugin-using-data-in-html-code/48835)._
