We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76644d8 commit 3065325Copy full SHA for 3065325
1 file changed
packages/comment-widget/src/base-comment-item.ts
@@ -124,7 +124,10 @@ export class BaseCommentItem extends LitElement {
124
<div class="item-content mt-2.5 space-y-2.5 content">
125
<slot name="pre-content"></slot>${unsafeHTML(
126
sanitizeHtml(this.content, {
127
- allowedAttributes: { code: ['class'] },
+ allowedAttributes: {
128
+ ...sanitizeHtml.defaults.allowedAttributes,
129
+ code: ['class'],
130
+ },
131
})
132
)}
133
</div>
0 commit comments