mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +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)
|
||||
{
|
||||
TagBuilder tagBuilder = new TagBuilder("a")
|
||||
{
|
||||
InnerHtml = linkContents
|
||||
};
|
||||
TagBuilder tagBuilder = new TagBuilder("a")
|
||||
{ InnerHtml = htmlHelper.Encode(linkContents) };
|
||||
tagBuilder.MergeAttributes(htmlAttributes);
|
||||
tagBuilder.MergeAttribute("href", href);
|
||||
return tagBuilder.ToString(TagRenderMode.Normal);
|
||||
|
Reference in New Issue
Block a user