Skip to content

Commit bdc8210

Browse files
authored
Fix rendering of DC.identifier and product_version meta tag (#1463)
1 parent ca22348 commit bdc8210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Elastic.Markdown/Page/Index.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
{
4545
if (name == GlobalSections.Head)
4646
{
47-
<meta class="elastic" name="product_version" content="@Model.CurrentVersion"/>
48-
<meta name="DC.identifier" content="@Model.CurrentVersion"/>
47+
<meta class="elastic" name="product_version" content="@(new HtmlString(Model.CurrentVersion))"/>
48+
<meta name="DC.identifier" content="@(new HtmlString(Model.CurrentVersion))"/>
4949
}
5050
if (name == GlobalSections.Head && Model.Products is { Count: > 0 })
5151
{

0 commit comments

Comments
 (0)