fix for issue

This commit is contained in:
Simon Whittemore
2010-04-06 19:40:51 +01:00
parent e41d711242
commit 7fd128d2f3

View File

@@ -187,14 +187,15 @@ namespace Orchard.Mvc.Html {
public static string Link(this HtmlHelper htmlHelper, string linkContents, string href, IDictionary<string, object> htmlAttributes)
{
TagBuilder tagBuilder = new TagBuilder("a")
{
InnerHtml = linkContents
};
tagBuilder.MergeAttributes(htmlAttributes);
tagBuilder.MergeAttribute("href", href);
return tagBuilder.ToString(TagRenderMode.Normal);
}
TagBuilder tagBuilder = new TagBuilder("a")
{
InnerHtml = htmlHelper.Encode(linkContents)
};
tagBuilder.MergeAttributes(htmlAttributes);
tagBuilder.MergeAttribute("href", href);
return tagBuilder.ToString(TagRenderMode.Normal);
}
#endregion