C#C
C#3y ago
johnrudy

✅ Remove tags from string

So if I have a string like this
This is a string with <color="red">different colors</color>. And some cool <shake>other effects</shake>


How can I remove the tags from the string and leave the rest as is?

I was thinking of looking into the string and removing everything between
<
and
>
but I can't seem to find a solution that would do that.

Any suggestions?
Was this page helpful?