Thread: C# основной форум/Remove Cr Nl and all tags from the text

Remove Cr Nl and all tags from the text
string Text =@" blblb";
            Text = Text.Replace("\n", "").Replace("\r", "").Trim();

            string Pattern = @"\<.*?\>";
            Regex rgx = new Regex(Pattern);
            Text = rgx.Replace(Text, "");

            Console.WriteLine(Text);