I get info (ingredient part) with html selection to keep the structure but it takes links as well. How can I remove links but not the text. Text selection doesn't have breaks for text.
page: Dorset sausage pasties recipe - BBC Good Food
Here is data i get with html selection:
h2 class="mb-md section-heading-1">Ingredients</h2><section><ul class="list"><li class="pb-xxs pt-xxs list-item list-item--separator">1 tbsp <a class="link link--styled" href="/glossary/olive-oil-glossary">olive oil</a></li><li class="pb-xxs pt-xxs list-item list-item--separator">1small <a class="link link--styled" href="/glossary/onion-glossary">onion,</a> finely chopped</li><li class="pb-xxs pt-xxs list-item list-item--separator">85g <!-- -->red lentil</li><li class="pb-xxs pt-xxs list-item list-item--separator">2 tbsp <!-- -->sundried tomato paste</li><li class="pb-xxs pt-xxs list-item list-item--separator">300ml <!-- -->vegetable stock</li><li class="pb-xxs pt-xxs list-item list-item--separator">4 good-quality <!-- -->sausages,<!-- --> skins removed</li><li class="pb-xxs pt-xxs list-item list-item--separator">50g <a class="link link--styled" href="/glossary/peas-glossary">frozen pea</a> or petit pois</li><li class="pb-xxs pt-xxs list-item list-item--separator"><a class="link link--styled" href="/glossary/flour-glossary">plain flour,</a> for dusting</li><li class="pb-xxs pt-xxs list-item list-item--separator">x <!-- -->packs shortcrust pastry</li><li class="pb-xxs pt-xxs list-item list-item--separator">1 <a class="link link--styled" href="/glossary/egg-glossary">egg,</a> beaten</li></ul></section>
shows like this:
h2 class="mb-md section-heading-1">Ingredients
- 1 tbsp olive oil
- 1small onion, finely chopped
- 85g red lentil
- 2 tbsp sundried tomato paste
- 300ml vegetable stock
- 4 good-quality sausages, skins removed
- 50g frozen pea or petit pois
- plain flour, for dusting
- x packs shortcrust pastry
- 1 egg, beaten