How to set disable_sanitize_html to true

Hi,

i have a problem that i use grafana inside docker, i want to set disable_sanitize_html to true,
so that i can use text panel html mode, please let me know to type the grafana-cli in the powershell, thanks!~

You need to change this in the Grafana configuration file:

[panels]
disable_sanitize_html = true

thanks marcus, but where to find this configuration file? my grafana is a docker container.

Although the thread is a few month old, Iā€™d like to share the solution:
In the settings of the docker container you need to add an environment variable representing the entry you want to change (GF_PANELS_DISABLE_SANITIZE_HTML) and set it to TRUE.
grafik
After restartng the container the HTML tag is displayed properly.

4 Likes

thanks, it worked here!