System.Web.HttpUtility.HtmlAttributeEncode C# (CSharp) Method

HtmlAttributeEncode() public static method

public static HtmlAttributeEncode ( string s ) : string
s string
return string
        public static string HtmlAttributeEncode(string s)
        {
            throw null;
        }

Same methods

HttpUtility::HtmlAttributeEncode ( string s, System output ) : void

Usage Example

        public static IHtmlString MetaTagLanguage <T>(this HtmlHelper <T> html)
        {
            var currentLanguage = HttpUtility.HtmlAttributeEncode(Threading.Thread.CurrentThread.CurrentUICulture.ToString());

            return(new MvcHtmlString(String.Format("<meta name=\"accept-language\" content=\"{0}\" >", currentLanguage)));
        }
All Usage Examples Of System.Web.HttpUtility::HtmlAttributeEncode