Allow HTML in Category Description

By default, WordPress will not accept your html in a post category, or other taxonomy description field. If you add the snippet below to your WordPress theme’s functions.php file, you will be able to insert html in the description fields for your categories.

foreach ( array( 'pre_term_description' ) as $filter ) {
remove_filter( $filter, 'wp_filter_kses' );
}

foreach ( array( 'term_description' ) as $filter ) {
remove_filter( $filter, 'wp_kses_data' );
}