ATMLUtilitiesLibrary.HtmlStripper.StripTagsRegex C# (CSharp) 메소드

StripTagsRegex() 공개 정적인 메소드

Remove HTML from string with Regex.
public static StripTagsRegex ( string source ) : string
source string
리턴 string
        public static string StripTagsRegex( string source )
        {
            String value = Regex.Replace( source, "<.*?>", string.Empty );
            return Regex.Replace( value, "&nbsp;", string.Empty );
        }