using System;
using System.IO;
using System.Net.Mail;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Configuration;
using System.Globalization;
using System.Web;
using System.Web.Configuration;
using System.Threading;
using System.Reflection;
using System.Collections;
using System.Xml;
using System.Net;
using System.Web.Caching;
namespace BlogEngine.Core
{
///
/// Utilities for the entire solution to use.
///
public static class Utils
{
private static readonly Regex STRIP_HTML = new Regex("<[^>]*>", RegexOptions.Compiled);
///
/// Strips all HTML tags from the specified string.
///
/// The string containing HTML
/// A string without HTML tags
public static string StripHtml(string html)
{
if (string.IsNullOrEmpty(html))
return string.Empty;
return STRIP_HTML.Replace(html, string.Empty);
}
}
}