mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fix for issue 16353
This commit is contained in:
@@ -187,10 +187,8 @@ namespace Orchard.Mvc.Html {
|
|||||||
|
|
||||||
public static string Link(this HtmlHelper htmlHelper, string linkContents, string href, IDictionary<string, object> htmlAttributes)
|
public static string Link(this HtmlHelper htmlHelper, string linkContents, string href, IDictionary<string, object> htmlAttributes)
|
||||||
{
|
{
|
||||||
TagBuilder tagBuilder = new TagBuilder("a")
|
TagBuilder tagBuilder = new TagBuilder("a")
|
||||||
{
|
{ InnerHtml = htmlHelper.Encode(linkContents) };
|
||||||
InnerHtml = linkContents
|
|
||||||
};
|
|
||||||
tagBuilder.MergeAttributes(htmlAttributes);
|
tagBuilder.MergeAttributes(htmlAttributes);
|
||||||
tagBuilder.MergeAttribute("href", href);
|
tagBuilder.MergeAttribute("href", href);
|
||||||
return tagBuilder.ToString(TagRenderMode.Normal);
|
return tagBuilder.ToString(TagRenderMode.Normal);
|
||||||
|
|||||||
Reference in New Issue
Block a user