This is a comment on SafeHTML, posted by WikiAdmin at 01.06.2022 09:50
View source for HTML5 Block-level elements patch
%%(hl diff) diff --git a/src/lib/safehtml/safehtml.php b/src/lib/safehtml/safehtml.php --- a/src/lib/safehtml/safehtml.php +++ b/src/lib/safehtml/safehtml.php @@ -222,11 +222,13 @@ * @var array */ public $closeParagraph = array( - 'address', 'blockquote', 'center', 'dd', 'dir', 'div', - 'dl', 'dt', 'h1', 'h2', 'h3', 'h4', - 'h5', 'h6', 'hr', 'isindex', 'listing', 'marquee', - 'menu', 'multicol', 'ol', 'p', 'plaintext', 'pre', - 'table', 'ul', 'xmp', + 'address', 'article', 'aside', 'audio', 'blockquote', 'canvas', + 'center', 'dd', 'dir', 'div', 'dl', 'dt', + 'figure', 'figcaption', 'footer', 'h1', 'h2', 'h3', + 'h4', 'h5', 'h6', 'header', 'hr', 'isindex', + 'listing', 'main', 'marquee', 'menu', 'multicol', 'nav', 'ol', 'output', + 'p', 'plaintext', 'pre', 'section', 'table', 'ul', + 'video', 'xmp', ); /** %%