fix: strip tags from output (#978)
This commit is contained in:
parent
575c12503c
commit
e529d99974
3 changed files with 7 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ import { MessageActions } from './message-actions';
|
|||
import { PreviewAttachment } from './preview-attachment';
|
||||
import { Weather } from './weather';
|
||||
import equal from 'fast-deep-equal';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { cn, sanitizeText } from '@/lib/utils';
|
||||
import { Button } from './ui/button';
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from './ui/tooltip';
|
||||
import { MessageEditor } from './message-editor';
|
||||
|
|
@ -130,7 +130,7 @@ const PurePreviewMessage = ({
|
|||
message.role === 'user',
|
||||
})}
|
||||
>
|
||||
<Markdown>{part.text}</Markdown>
|
||||
<Markdown>{sanitizeText(part.text)}</Markdown>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue