https://retellai.com/?utm_source=discord&utm_medium=seo logo
can I render HTML code in the retell chat window
# ❓・ai-evy-support
d
@AI Evy can I render HTML code in the retell chat window?
a
Thanks for tagging me @dzei. I'll look through relevant sources and get back to you shortly.
### Answer The Retell chat widget renders plain text only—it does not support Markdown or rich-text/HTML formatting. [(1) ]() This means if your agent returns HTML code, the widget will either: - Collapse formatting characters (like
\n
for newlines) into a single paragraph - Or in some cases, actually render HTML tags (like
<img>
) as their output rather than displaying the raw code [(2) ]() If you need to display raw HTML code to users, you would need to build a custom chat interface rather than using the standard Retell chat widget.
​ To learn more, see the sources I considered: [[1] Chatbot formatting issue](https://discord.com/channels/1186424376300679209/1410337496922984518) [[2] Chat widget is rendering output of an html code instead of the code itself](https://discord.com/channels/1186424376300679209/1447648415843618998) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.