Remove unknown string between tags

Highlighted

Hi,

I'm trying to remove a string between 2 tags. For instance with h4 tags : 

 

Rich text editor:

 

Text here
<h4> Need to remove this text </h4>
More text here

Liquid template:

{{ product.description | remove: '<h4>unknown string</h4>' }}

Is there a convenient way to do that ? I tried to play around with split, but not so successfully.

Thank you hips!

 

C'est simple comme bonjour ! Ou presque.
Need some help to customize your website? Message me anytime: 5euros.com/profil/maxdesign
0 Likes