How to render raw html in Blazor ?


Today I was working on my blazor project. I got the scenario to render raw html in my component page. I did using MarkupString like given below code snippet.

Advertisement

2 thoughts on “How to render raw html in Blazor ?

  1. Hans Meiser April 12, 2022 / 10:19 am

    You should render this as text and not as image to make it easy for your viewers to test the code.

    • Chandradev April 12, 2022 / 11:09 am

      Thanks for your suggestion, I will keep on posting code as text.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.