Replies: 1 comment 1 reply
-
|
Hey! 👋 I really like this idea — supporting safe HTML rendering in Your example with ✅ SuggestionMaybe this could be solved by adding an optional flag like: column_formatters_detail_html_safe = {
"your_column_name": True
}Or simply allow returning a from markupsafe import Markup
def formatter_json(m, a):
value = getattr(m, a)
return Markup(f"<pre>{json.dumps(value, indent=2)}</pre>") if value else "NULL"🛡️ Of course, this should be opt-in to prevent XSS risks.Would love to see this added — especially for dashboards that display nested data, code blocks, or logs. Thanks for proposing this! 🚀 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice to being able to add some HTML to
column_formatters_detail. Example below:is returning on screen:
Beta Was this translation helpful? Give feedback.
All reactions