dosubot[bot] commented on issue #25561:
URL: https://github.com/apache/superset/issues/25561#issuecomment-3145786673

   <!-- Answer -->
   The root cause is the frontend’s aggressive HTML detection logic: any string 
with angle brackets (like `<abcdef:12345>`) is classified as HTML by the 
isProbablyHTML function, even if it’s not valid HTML. When this happens, 
Superset tries to render it as HTML using dangerouslySetInnerHTML, but browsers 
ignore unknown tags, so nothing appears in the cell. This is why toggling the 
“Render HTML” option doesn’t fix the issue—the detection logic still treats 
these strings as HTML and hides them, regardless of the toggle’s state. The 
relevant code is in 
superset-frontend/packages/superset-ui-core/src/utils/html.tsx and is global 
and hardcoded, so there’s no user-facing way to adjust this behavior without a 
code change. See [this related issue and 
explanation](https://github.com/apache/superset/issues/34082).
   
   Workarounds include disabling HTML rendering for affected columns (where 
possible) or preprocessing your data to escape angle brackets (replace `<` with 
`&lt;` and `>` with `&gt;`). To truly fix this, the detection logic in 
isProbablyHTML would need to be refined to better distinguish between actual 
HTML and plain strings with angle brackets. No recent PRs address this yet.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/d628baeb-5732-4539-ae69-df2fed9f19fd?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/d628baeb-5732-4539-ae69-df2fed9f19fd?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/d628baeb-5732-4539-ae69-df2fed9f19fd?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/d628baeb-5732-4539-ae69-df2fed9f19fd?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/d628baeb-5732-4539-ae69-df2fed9f19fd?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/d628baeb-5732-4539-ae69-df2fed9f19fd?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/d628baeb-5732-4539-ae69-df2fed9f19fd?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/25561)


-- 
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]

Reply via email to