using System.Text.RegularExpressions;
///
/// Removes any html tags - used mainly on meta description for Products.
/// Expects: string.
/// Returns: string.
///
public class ReplaceHTMLTags
{
public static string Strip(string text)
{
return Regex.Replace(text, @"<(.|\n)*?>", string.Empty);
}
}
///
/// Removes any html tags - used mainly on meta description for Products.
/// Expects: string.
/// Returns: string.
///
public class ReplaceHTMLTags
{
public static string Strip(string text)
{
return Regex.Replace(text, @"<(.|\n)*?>", string.Empty);
}
}
No comments:
Post a Comment