internal static string StringTemplate(HtmlHelper html) { return html.Encode(html.ViewContext.ViewData.TemplateInfo.FormattedModelValue); }
internal static string UrlTemplate(HtmlHelper html) { return String.Format(CultureInfo.InvariantCulture, "<a href=\"{0}\">{1}</a>", html.AttributeEncode(html.ViewContext.ViewData.Model), html.Encode(html.ViewContext.ViewData.TemplateInfo.FormattedModelValue)); }
public static string String(HtmlHelper html) { return html.Encode(html.Context.ViewData.Template.Value); }