Configure allowed HTML Tags for Archive Views

You can configure the Genesis framework to show post excerpts in archive views. By default, all HTML tags are removed in the excerpts. To allow some HTML tags, you can use the snippet below:

add_filter( 'get_the_content_limit_allowedtags', 'wpkb_content_limit_custom_tags' );

function wpkb_content_limit_custom_tags( $allowed_tags ) {
    $allowed_tags = '<script>,<style>,<br>,<em>,<i>,<ul>,<ol>,<li>,<a>'; 

    // Other tags for special cases (e.g. special posts)
    if ( custom_function_to_check() ) {
        $allowed_tags = '<em>,<i>,<ul>,<ol>,<li>,<a>';

    return $allowed_tags;