HTML <br>
tag not rendering in query results
#31014
Unanswered
hf-13
asked this question in
Q&A / Help
Replies: 1 comment
-
Hey there, @hf-13! 👋 I'm here to help you out with bugs, questions, and becoming a contributor. To configure Superset to properly render HTML tags like const xssFilter = new FilterXSS({
whiteList: {
...getDefaultWhiteList(),
br: [], // Add the <br> tag to the whitelist
span: ['style', 'class', 'title'],
div: ['style', 'class'],
a: ['style', 'class', 'href', 'title', 'target'],
img: ['style', 'class', 'src', 'alt', 'title', 'width', 'height'],
video: [
'autoplay',
'controls',
'loop',
'preload',
'src',
'height',
'width',
'muted',
],
},
stripIgnoreTag: true,
css: false,
}); This configuration will allow the |
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
-
Description
When running a SQL query that includes an HTML
<br>
tag, Superset is not rendering the tag as expected. Instead, it's being stripped from the output.Steps to Reproduce
<br>
tag and subsequent text removed.Configuration Attempted
The following configuration has been applied in a Kubernetes deployment using Helm:
It all was confirmed with
superset shell
Additional Information
TALISMAN_ENABLED = False
).Environment
Question
Is there a way to configure Superset to properly render HTML tags, specifically the
<br>
tag, in query results while maintaining security?Beta Was this translation helpful? Give feedback.
All reactions