VolkovLabs / business-text

The Business Text panel plugin allows you to construct a text visualization template from the values of a dataset returned by a data source query.
https://volkovlabs.io
Apache License 2.0
83 stars 13 forks source link

target="_blank" doesn't seem to work properly in the business text panel #363

Closed MingshengVrai closed 1 month ago

MingshengVrai commented 1 month ago

Hello, I am adding a link to the text in the business panel, and I want the browser to open a new window when the text is clicked. Here is what I put in the content Visit Example. However, the browser opens the link in the current window, instead of opening a new window. I would greatly appreciate it if you can fix this.

I am using Windows 10 OS, and Chrome browser.

Here is an example panel I created. image

Thanks a lot!

mikhail-vl commented 1 month ago

@MingshengVrai You will need to disable HTML sanitization to open links in new tabs and other non-secure elements: https://volkovlabs.io/plugins/business-text/content/#html-sanitization.

We strictly follow Grafana security guidelines and sanitize Content elements.