From 0b7d1dc06f4a7a821ea0717faa69dffa95047d8b Mon Sep 17 00:00:00 2001 From: FreeScout Date: Thu, 11 Jul 2024 00:53:42 -0700 Subject: [PATCH] Allow padding-left and simiar CSS properties when purifying HTML --- config/purifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/purifier.php b/config/purifier.php index 2005dd7cf..c10e64a54 100644 --- a/config/purifier.php +++ b/config/purifier.php @@ -25,7 +25,7 @@ 'default' => [ 'HTML.Doctype' => 'HTML 4.01 Transitional', 'HTML.Allowed' => 'div[style],b,strong,i,em,u,a[href|title|style],ul,ol,li,p[style],br,span[style],img[width|height|alt|src|style],table[style|border|bgcolor|cellspacing|cellpadding|border|width],tr[style|bgcolor],td[style|colspan|rowspan|width|bgcolor|border|valign|align],th[style|colspan|rowspan],thead,tfoot,tbody,blockquote,pre,s,strike,font[style|color],h1[style],h2[style],h3[style],h4[style],h5[style],h6,center', - 'CSS.AllowedProperties' => 'display,overflow,border-radius,letter-spacing,white-space,font-size,margin,background,text-transform,max-width,max-height,width,height,font,padding,font-family,border-color,font-weight,font-style,text-decoration,color,background-color,text-align,border,border-top,border-left,border-bottom,border-right', + '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, 'CSS.Proprietary' => true,