Unescape HTML facet labels

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

add_filter( ‘facetwp_facet_html’, function( $html, $args ) {
if ( ‘langdurige_opsluiting’ == $args[‘facet’][‘name’] ) {
$html = htmlspecialchars_decode( $html );
}
return $html;
}, 10, 2 );

{{/gist}}