Carrotware.Web.UI.Controls.CaptchaImage.DecodeColor C# (CSharp) Method

DecodeColor() public static method

public static DecodeColor ( string ColorCode ) : string
ColorCode string
return string
        public static string DecodeColor(string ColorCode)
        {
            string sColor = "";
            if (!string.IsNullOrEmpty(ColorCode)) {
                sColor = ColorCode;
                sColor = HttpUtility.HtmlDecode(sColor);
                sColor = sColor.Replace("HEX-", "#");
            }
            return sColor;
        }