View Single Post
Old 01-06-2024, 09:57 AM   #1
Villard
Connoisseur
Villard began at the beginning.
 
Posts: 74
Karma: 10
Join Date: May 2016
Device: Koreader running on Kobo Libra 2
How to remove a 'p' tag with a condition on an inner 'a' tag ?

Hello,
I'm writing a recipe for "The Conservation"
I want to get rid in this below section of all the 2nd 'p' tag with the condition that the'href' attribute in the 'a' tag is equal to "https://theconversation.com/fr/partners".
I've tried several pieces of code, but didn't succed.
Thank you for your help
Villard
<section class="content-partners">
<h3 class="border">Partenaires</h3>
<p class="funding-statement"><a href="https://theconversation.com/institutions/inrae-2182">INRAE</a> apporte des fonds en tant que membre fondateur de The&nbsp;Conversation FR.</p>
<p><a href="https://theconversation.com/fr/partners">Voir les partenaires</a> de The&nbsp;Conversation France</p>
</section>
Villard is offline   Reply With Quote