I am trying to extract text and also link which is in href.
<html>
<body>
<p>foo <a href='http://www.example.com'>bar</a>
<br> baz</p>
</body>
</html>
I am looking for output as, foo http://www.example.com bar baz
br tag should be consider so to get correct formatted sentence.
Here you go:
Output:
Working Example: https://dotnetfiddle.net/BBYAF9