From 36fbde507bd6f85116c81019045b504e4104f464 Mon Sep 17 00:00:00 2001 From: loviuz Date: Sat, 30 Jul 2022 15:49:34 +0200 Subject: [PATCH] Aggiunta tag h1...h6 come elementi permessi in editor di testo --- src/Filter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Filter.php b/src/Filter.php index fabf40fbe..e8ea901f0 100755 --- a/src/Filter.php +++ b/src/Filter.php @@ -173,7 +173,7 @@ class Filter if (empty(self::$purifier)) { $config = \HTMLPurifier_Config::createDefault(); - $config->set('HTML.Allowed', 'br,p[style],b[style],strong[style],i[style],em[style],u[style],strike,a[style|href|title|target],ol[style],ul[style],li[style],hr[style],blockquote[style],img[style|alt|title|width|height|src|align],table[style|width|bgcolor|align|cellspacing|cellpadding|border],tr[style],td[style],th[style],tbody,thead,caption,col,colgroup,span[style],sup'); + $config->set('HTML.Allowed', 'br,p[style],b[style],strong[style],i[style],em[style],u[style],strike,a[style|href|title|target],ol[style],ul[style],li[style],hr[style],blockquote[style],img[style|alt|title|width|height|src|align],table[style|width|bgcolor|align|cellspacing|cellpadding|border],tr[style],td[style],th[style],tbody,thead,caption,col,colgroup,span[style],sup,h1[style],h2[style],h3[style],h4[style],h5[style],h6[style]'); //$config->set('Cache.SerializerPath', realpath(__DIR__.'/cache/HTMLPurifier')); $config->set('Cache.DefinitionImpl', null);