public static object Substitution(this HtmlHelper html, SubstitutionCalback cbSubstitution) { html.ViewContext.HttpContext.Response.WriteSubstitution( c => HttpUtility.HtmlEncode( cbSubstitution(new HttpContextWrapper(c)) )); return null; }
public static object Substitution(this HtmlHelper html, SubstitutionCalback cbSubstitution) { html.ViewContext.HttpContext.Response.WriteSubstitution( c => HttpUtility.HtmlEncode( cbSubstitution(new HttpContextWrapper(c)) )); return(null); }