System.Net.WebUtility.HtmlDecode C# (CSharp) Method

HtmlDecode() public static method

public static HtmlDecode ( string value ) : string
value string
return string
        public static string HtmlDecode(string value)
        {
            if (string.IsNullOrEmpty(value))
            {
                return value;
            }

            // Don't create StringBuilder if we don't have anything to encode
            if (!StringRequiresHtmlDecoding(value))
            {
                return value;
            }

            StringBuilder sb = StringBuilderCache.Acquire(value.Length);
            HtmlDecode(value, sb);
            return StringBuilderCache.GetStringAndRelease(sb);
        }

Same methods

WebUtility::HtmlDecode ( string value, StringBuilder output ) : void
WebUtility::HtmlDecode ( string value, TextWriter output ) : void