[], 'br' => [], 'hr' => [], 'div' => [], 'span' => [], 'strong' => [], 'b' => [], 'em' => [], 'i' => [], 'u' => [], 's' => [], 'ul' => [], 'ol' => [], 'li' => [], 'h2' => [], 'h3' => [], 'h4' => [], 'h5' => [], 'blockquote' => [], 'a' => ['href', 'target', 'rel'], ]; // Elements removed entirely (content and all) when they appear anywhere. const HTML_DANGEROUS_TAGS = [ 'script', 'style', 'iframe', 'object', 'embed', 'form', 'input', 'button', 'textarea', 'select', 'option', 'link', 'meta', 'base', 'svg', 'math', 'audio', 'video', 'source', 'frame', 'frameset', 'applet', ]; function clean_richtext(?string $html): string { return html_sanitize((string) $html, HTML_RICHTEXT_TAGS); } // The maps field holds a single Google Maps