Tweet.RemoveHTMLFromString C# (CSharp) Method

RemoveHTMLFromString() protected static method

protected static RemoveHTMLFromString ( string str ) : string
str string
return string
    protected static string RemoveHTMLFromString(string str)
    {
        if (string.IsNullOrEmpty (str))
        {
            return null;
        }

        return Regex.Replace(str, @"<[^>]+>|&nbsp;", "").Trim();
    }