Allow HTML in excerpt
-
Hi,
I’m using a code snippet to allow html tags in the excerpt, and it works fine if I call
get_the_excerpt()directly. But when using this plugin, the HTML is stripped again.I checked out your code but cannot find where this is happening.
If I change this line in your code:
$html .= wp_trim_words( apply_filters( 'rpwe_excerpt', get_the_excerpt() ), $args['length'], ' …' );
to$html .= get_the_excerpt();
It also works, but that won’t persist when updating the plugin.
Is it possible to allow HTML tags in the excerpt when using your plugin?
The topic ‘Allow HTML in excerpt’ is closed to new replies.