chore: correct filename typo
This commit is contained in:
parent
f7f3e9c7e1
commit
f0aefae6a4
1 changed files with 0 additions and 0 deletions
|
@ -1,11 +0,0 @@
|
|||
import SanitizeHTML from 'sanitize-html'
|
||||
|
||||
export function sanitize(text: string) {
|
||||
return SanitizeHTML(text, {
|
||||
allowedAttributes: {
|
||||
a: ['href', 'name', 'target', 'class'],
|
||||
span: ['class'],
|
||||
img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading'],
|
||||
},
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue