Vishmax.com
Read

WordPress Strip HTML tags from the_terms

We design and develop websites, digital experiences, and software solutions for growing businesses.

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);
}
?>