🐛 (stream) Fix target attribute being trimmed on message stream

This commit is contained in:
Baptiste Arnaud
2023-12-13 14:47:06 +01:00
parent fbddddcfa0
commit bf626bb0a3
7 changed files with 14 additions and 9 deletions

View File

@@ -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'],
})
)
})