mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-20 20:01:22 +00:00
Fix forgotten parameter 'key' in 'cleanHtml'
This commit is contained in:
parent
f92cec3749
commit
5dd969c372
@ -56,7 +56,7 @@ const standardSanitizeHtmlOptions = {
|
||||
},
|
||||
}
|
||||
|
||||
export function cleanHtml(dirty, sanitizeHtmlOptions = standardSanitizeHtmlOptions) {
|
||||
export function cleanHtml(dirty, _key, sanitizeHtmlOptions = standardSanitizeHtmlOptions) {
|
||||
if (!dirty) {
|
||||
return dirty
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ if (!hasEmailConfig) {
|
||||
console.log('Content:')
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(
|
||||
cleanHtml(templateArgs.html, {
|
||||
cleanHtml(templateArgs.html, 'dummyKey', {
|
||||
allowedTags: ['a'],
|
||||
allowedAttributes: { a: ['href'] },
|
||||
}).replace(/&/g, '&'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user