From 5daafb44ba3d46ad53e5ae6f905b9fb9faa7ea23 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 5 Jul 2017 09:54:53 +0200 Subject: [PATCH] Bug fix: HtmlHelperExtension generated invalid HTML markup. --- Extensions/Jdenticon.AspNet.Mvc/HtmlHelperExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extensions/Jdenticon.AspNet.Mvc/HtmlHelperExtensions.cs b/Extensions/Jdenticon.AspNet.Mvc/HtmlHelperExtensions.cs index 1e1c465..bd8a9c1 100644 --- a/Extensions/Jdenticon.AspNet.Mvc/HtmlHelperExtensions.cs +++ b/Extensions/Jdenticon.AspNet.Mvc/HtmlHelperExtensions.cs @@ -83,7 +83,7 @@ public static MvcHtmlString Identicon(this HtmlHelper helper, byte[] hash, int s "src=\"" + HttpUtility.HtmlAttributeEncode(url) + "\" " + "width=\"" + size + "\" " + "height=\"" + size + "\" " + - "title=\"" + HttpUtility.HtmlAttributeEncode(alt ?? "") + "\" \">"; + "alt=\"" + HttpUtility.HtmlAttributeEncode(alt ?? "") + "\" >"; return new MvcHtmlString(html); } }