Remove all HTML Tags from string in c#

private string StripHTML(string strContent)
{
    //strContent = Regex.Replace(strContent, @"[^\u0000-\u007F-\u0x0B]", "");
    string asAscii = Encoding.ASCII.GetString(
    Encoding.Convert(
        Encoding.UTF8,
        Encoding.GetEncoding(
            Encoding.ASCII.EncodingName,
            new EncoderReplacementFallback(string.Empty),
            new DecoderExceptionFallback()
            ),
        Encoding.UTF8.GetBytes(strContent)
    )
    );
    return Regex.Replace(asAscii, "<.*?>", string.Empty);
}
Ebook Download
View all
Learn
View all