Maybe now, with the wordpress 3.6, there is a filter on allowing html tags on the_excerpt()

I am trying to get the_excerpt() to allow certain html tags and I searched and searched and all I find is outdated info.

What is a valid method to do it?

  • maybe you can do somthing with the esc_html filter
    – Puggan Se
    Aug 14, 2013 at 11:08

1 Answer 1


You can pass in HTML formatting within custom excerpts and output it via the_excerpt() or get_the_excerpt() in your template files.

Check your template files for additional custom filters added to the_excerpt() or get_the_excerpt() if the HTML formatting is removed anyway.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.