© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
20 replies
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>
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ how remove duplicates from string?
C#CC# / help
3y ago
❔ Stringbuilder remove
C#CC# / help
3y ago
Extracting string from string?
C#CC# / help
4y ago
Remove string on specified character
C#CC# / help
4y ago