GitHub user madpizza added a comment to the discussion: Is there anyway to 
embed 3rd party page (eg: kibana’s visualize)  in superset dashboard?

Hi, new to Superset (and the community) and I might be late to solve, but here 
goes.

I had the same problem, but changing in `superset_config.py` setting 
`HTML_SANITIZATION` to `False` got the iframe to show and am now looking into 
what setting in the sanitization specifically caused the problem. Browser's 
inspector tool showed that the markdown element only had the `<p>` tags, which 
meant that Superset was pruning the `<iframe>` block from the DOM.

Also a side note about markdown, you don't need to add all the html tags, just 
the `<iframe ...></iframe>` is enough,  like this:

```
<iframe
  src="data:text/html,<body style='background-color:lightyellow; 
margin:10px;'><p>Hello from a simple data iframe! If you see this, basic iframe 
rendering and sizing works.</p></body>"
  style="width: 90%; height: 150px; border: 2px dashed green;"
  title="Simple Data Iframe">
</iframe>
```

![image](https://github.com/user-attachments/assets/5cefe5b4-eb02-4dc7-a99e-101e85aca534)

GitHub link: 
https://github.com/apache/superset/discussions/29929#discussioncomment-13144149

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to