Skip to content

Commit

Permalink
feat(ui/chat): support for html tag return
Browse files Browse the repository at this point in the history
  • Loading branch information
mrevanzak committed May 29, 2024
1 parent 16eb54c commit 0336a58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/ui/src/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ export function Chat() {
: "mr-2 bg-content2",
)}
>
{item.content}
{item.content.includes("</>") ? (
<div dangerouslySetInnerHTML={{ __html: item.content }} />
) : (
item.content
)}
</p>
</div>
))}
Expand Down

0 comments on commit 0336a58

Please sign in to comment.