AvalonStudio.Extensibility.Ext.StripHTML C# (CSharp) Method

StripHTML() public static method

public static StripHTML ( this HTMLText ) : string
HTMLText this
return string
        public static string StripHTML(this string HTMLText)
        {
            Regex reg = new Regex("<[^>]+>", RegexOptions.IgnoreCase);
            var stripped = reg.Replace(HTMLText, "");
            return stripped;
        }