Allow dl, dt and dd to purifier config - closes #5654

This commit is contained in:
FreeScout
2026-09-22 03:18:50 -07:00
parent 2221777f3a
commit 96523cf6d9

View File

@@ -27,7 +27,7 @@ return [
// https://github.com/freescout-help-desk/freescout/issues/5481#issuecomment-5113750894
//'Core.EscapeNonASCIICharacters' => true,
'HTML.Doctype' => 'HTML 4.01 Transitional',
'HTML.Allowed' => 'div[style],b[style],strong[style],i[style],em[style],u[style],a[href|title|style],ul[style],ol[style],li[style],p[style],br,span[style],img[width|height|alt|src|style],table[style|border|bgcolor|cellspacing|cellpadding|border|width|class],tr[style|bgcolor],td[style|colspan|rowspan|width|bgcolor|border|valign|align],th[style|colspan|rowspan],thead,tfoot,tbody,blockquote[style],pre[style],code[style],kbd[style],s[style],strike[style],font[style|color],h1[style],h2[style],h3[style],h4[style],h5[style],h6[style],center[style]',
'HTML.Allowed' => 'div[style],b[style],strong[style],i[style],em[style],u[style],a[href|title|style],ul[style],ol[style],li[style],p[style],br,span[style],img[width|height|alt|src|style],table[style|border|bgcolor|cellspacing|cellpadding|border|width|class],tr[style|bgcolor],td[style|colspan|rowspan|width|bgcolor|border|valign|align],th[style|colspan|rowspan],thead,tfoot,tbody,blockquote[style],pre[style],code[style],kbd[style],s[style],strike[style],font[style|color],h1[style],h2[style],h3[style],h4[style],h5[style],h6[style],center[style],dl[style],dt[style],dd[style]',
'CSS.AllowedProperties' => 'display,overflow,border-radius,letter-spacing,white-space,font-size,margin,margin-top,margin-right,margin-bottom,margin-left,background,text-transform,max-width,max-height,width,height,font,padding,padding-top,padding-right,padding-bottom,padding-left,font-family,border-color,font-weight,font-style,text-decoration,color,background-color,text-align,border,border-top,border-left,border-bottom,border-right',
'AutoFormat.AutoParagraph' => true,
'AutoFormat.RemoveEmpty' => true,