🐛 (stream) Fix target attribute being trimmed on message stream
This commit is contained in:
@@ -21,7 +21,9 @@ export const StreamingBubble = (props: Props) => {
|
||||
createEffect(() => {
|
||||
if (streamingMessage()?.id === props.streamingMessageId)
|
||||
setContent(
|
||||
domPurify.sanitize(marked.parse(streamingMessage()?.content ?? ''))
|
||||
domPurify.sanitize(marked.parse(streamingMessage()?.content ?? ''), {
|
||||
ADD_ATTR: ['target'],
|
||||
})
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user