Skip to content

Filter: bricks/allowed_html_tags

Filters the list of allowed HTML tags that can be used when selecting a “Custom” HTML tag in element settings. This ensures that custom tags are sanitized correctly.

  • $allowed_html_tags (array): Array of allowed HTML tag names.
add_filter( 'bricks/allowed_html_tags', function( $allowed_html_tags ) {
// Add 'marquee' to the list of allowed tags
$allowed_html_tags[] = 'marquee';
return $allowed_html_tags;
} );