mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
fix for issue
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user