Replies: 2 comments
-
|
Any news of that ? Will it be available in v5.0 ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Just so people know, you have long been able to enable this in your Superset config. It goes in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
When creating a dashboard and using Markdown to create a hyperlink (
<a>), thetargetattribute is stripped, even if explicitly included in the raw Markdown input. This prevents the ability to usetarget="_blank"to open links in a new tab, which is a common use case in dashboards.Upon reviewing the source code, the issue seems to originate from the following function. The
targetattribute for<a>tags is not currently included in thesafe_markdown_attrs, causing it to be stripped during the sanitization process.Proposed Solution
Add the
targetattribute to the allowed attributes for<a>tags in thesafe_markdown_attrs:Additionally, consider enforcing the use of
rel="noopener noreferrer"for security purposes whentarget="_blank"is used.Beta Was this translation helpful? Give feedback.
All reactions