Skip to content

Commit

Permalink
Use BlazorHtml.Raw()
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Oct 28, 2023
1 parent e7bc1e0 commit 67b5f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MyApp/Components/Shared/BlogTitle.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="text-center">
<h2 class="text-3xl font-bold tracking-tight text-gray-900 dark:text-gray-100 sm:text-4xl">@AppConfig.BlogTitle</h2>
<p class="mx-auto mt-3 max-w-2xl text-xl text-gray-500 sm:mt-4">
@((MarkupString)Heading)
@BlazorHtml.Raw(Heading)
</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion MyApp/Pages/Docs.razor
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</section>
<div class="mx-auto">
<div class="mx-auto prose lg:prose-xl mb-24">
@((MarkupString)doc.Preview!)
@BlazorHtml.Raw(doc.Preview)
</div>
</div>
}
Expand Down

0 comments on commit 67b5f9d

Please sign in to comment.