You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to render raw html into a razor page, most people just use HtmlString type to convert a string into full html. When I wanted to do this in my Blazor app, I was able to reference HtmlString but it wasn't working as expected at runtime. After pinging some devs in the ASP.NET team, I was told that this is by design as Blazor requires MarkupString to be used instead. We should either:
Add more documentation onto HtmlString to indicate that it shouldn't be used in Blazor
Add a code analyzer which detects uses of HtmlString inside a Blazor app and emit a warning and suggestion to use MarkupString instead