I'm using hacksaw to display the first part of my article on a blog listing page.
{{ entry.body|hacksaw(chars='300',allow='<p>', append='...') }}
The issue I have is when an article starts with a heading in it's body it looks like the attached. I'd ideally like to remove any headings from the excerpts.
As you can see the headings 'Reducing the size...' and 'Scaling' come through as plain text and the rest continues with my allowed
The only way I can think to do this is to allow their headings (h2 and h3) and then hide them in CSS, but I'm hoping there's a better way.