Home » Labs » WordPress Strip HTML tags from the_terms  

WordPress Strip HTML tags from the_terms


Filed under Labs

The bellow function will strip html from the_terms, just copy and paste it to your functions.php

<?php
 
//WordPress - strip html from the_terms
 
add_filter('the_terms', 'function_filter_terms',10,5);
 
function function_filter_terms($term_list, $taxonomy, $before, $sep, $after){
     return strip_tags($term_list);
}
?>

Posts you may like: