Skip to content

Commit

Permalink
Fix for HtmlDisplay if more than one <style> in Html Document
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasGeeGee authored and wkramer committed Oct 24, 2024
1 parent d8b5d05 commit fd2917b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/general/HtmlDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const htmlText = computedAsync(async () => {
const text = await response.text()
if (response.ok) {
// Remove style since this leaks into our global styles
const textWithoutStyle = text.replaceAll(/<style>(.|\n)*<\/style>/g, '')
const textWithoutStyle = text.replaceAll(/<style>(.|\n)*?<\/style>/g, '')
return textWithoutStyle
}
} catch (error) {
Expand Down

0 comments on commit fd2917b

Please sign in to comment.