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
Highlighted
Excursionist
19 0 1

Edit: 

 

Wait, no, sorry I read again and see the description part, I don't know how to do it.

 

I'm also looking a way to do something similar, but I want to capture the text between the two H4 Tags so that I can reuse it elsewhere

0 Likes