I am about to re-write all common MVC Html helpers to provide some localization abilities inside. I am trying to find a way not to ruin what actually current framework helpers doing on their own. For example; i want to re-write "LabelFor" html helper without changing what it actually does in the MVC framework, except only changing its "InnerHtml". Since framework helpers return "MvcHtmlString", i actually don't know how to play around with it.
public static class MvcLabelExtensions
{
public static MvcHtmlString Label(this HtmlHelper html, string expression)
{
MvcHtmlString baseResult = System.Web.Mvc.Html.LabelExtensions.Label(html, expression);
// want to change InnerHtml here... ??? ..
return baseResult;
}
}