dosubot[bot] commented on issue #30381:
URL: https://github.com/apache/superset/issues/30381#issuecomment-2372576873
<!-- Answer -->
The `class` attribute is still empty in the output HTML because the
`HTML_SANITIZATION_SCHEMA_EXTENSIONS` configuration is not set correctly. The
`className` attribute is not necessary and might be causing issues. You only
need to include the `class` attribute.
Here is the corrected configuration:
```python
HTML_SANITIZATION = True
HTML_SANITIZATION_SCHEMA_EXTENSIONS = {
"attributes": {
"*": ["style", "class"],
},
"tagNames": ["style"],
}
```
Make sure this configuration is included in your `superset_config.py` file
and restart Superset to apply the changes
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/config.py)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]