From f553543a165d5dbe201761bf0d6bd804332735c6 Mon Sep 17 00:00:00 2001 From: trwnh Date: Tue, 23 Apr 2019 21:12:02 -0500 Subject: [PATCH] Add more safe html types - b for bold - del for semantic redaction - s, strike for strikethroughs - h6 was missing --- config/purify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/purify.php b/config/purify.php index 274d7a21..da156c5f 100644 --- a/config/purify.php +++ b/config/purify.php @@ -69,7 +69,7 @@ return [ 'HTML.Allowed' => env('RESTRICT_HTML_TYPES', true) ? 'a[href|title|rel],p,span,br' : - 'a[href|title|rel],p,span,strong,em,i,h1,h2,h3,h4,h5,ul,ol,li,br', + 'a[href|title|rel],p,span,strong,em,del,b,i,s,strike,h1,h2,h3,h4,h5,h6,ul,ol,li,br', /*