-export function getSanitizeOptions () {
+export function getDefaultSanitizeOptions () {
return {
allowedTags: [ 'a', 'p', 'span', 'br', 'strong', 'em', 'ul', 'ol', 'li' ],
allowedSchemes: [ 'http', 'https' ],
}
}
+export function getTextOnlySanitizeOptions () {
+ return {
+ allowedTags: [] as string[]
+ }
+}
+
export function getCustomMarkupSanitizeOptions (additionalAllowedTags: string[] = []) {
- const base = getSanitizeOptions()
+ const base = getDefaultSanitizeOptions()
return {
allowedTags: [