I am working with .NET and I want to do some string manipulations like this:
Input:
hi hello <bbb name='ahhahdch'>MR.JKROY</bbb>.how are you.Let's meet
<bbb name='bbcbc'>SUSANNE</bbb>. Our team lead is <bbb name='cdcdcd'>JACK</bbb>, from .net.
Output:
hi hello MR.JKROY.how are you.Let’s meet. Our team lead is JACK , from .net.
In a nutshell, I want to remove the XML tags (including attributes) and to retrieve the value of the tag.
hiya if its HTML tag removal only then use this
If you are getting XML feed and you can create the string using LINQ good answere here: remove tags from a xml file written to a string?
How can I strip HTML tags from a string in ASP.NET?
Cheers