System.Web.Mvc.StringExtensions.StripHTML C# (CSharp) 메소드

StripHTML() 공개 정적인 메소드

public static StripHTML ( this htmlString ) : string
htmlString this
리턴 string
        public static string StripHTML(this string htmlString)
        {
            const string pattern = @"<(.|\n)*?>";
            return Regex.Replace(htmlString, pattern, string.Empty);
        }