You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the chat output/input contains markdown content starting with code fences ``` without specifying a language (e.g., (code fences)html or (code fences)bash), it defaults to txt. If there is HTML code inside it, the HTML gets rendered, making the component prone to XSS attacks. Is there any way to overcome this issue?
🧐 问题描述
When the chat output/input contains markdown content starting with code fences ``` without specifying a language (e.g., (code fences)html or (code fences)bash), it defaults to
txt
. If there is HTML code inside it, the HTML gets rendered, making the component prone to XSS attacks. Is there any way to overcome this issue?💻 示例代码
code fences
code fences
🚑 其他信息
No additional information at the moment, but the issue is relevant for security and user content sanitization.
The text was updated successfully, but these errors were encountered: