I have a question relating to the manipulation of strings in C#.
Say I have a string:
"Today I ate a <a href="link here "> chocolate </a> at the <a href=\"another link here"> supermarket</a>. It was a brand of <a href=\"3rd link">Contoso</a>
I would like to make it:
"Today I ate a chocolate at the supermarket. It was a brand of Contoso.
I can remove the </a>
part of it, but am unsure of how to remove everything and anything between the <a href
and the >
How would I go about doing this?
Thanks in advance!