Solutionunvalidated
By default, Razor HTML encodes all strings that it is asked to render. — Some frameworks (such as ASP.NET Core) put protections in place on your behalf. Tension: You have to take steps to bypass this protection to render the string as raw HTML. Outcome: take responsibility for any sanitising that your application requires.
da9aaeac-019a-49fb-936a-81dcbb6dccb3
By default, Razor HTML encodes all strings that it is asked to render. — Some frameworks (such as ASP.NET Core) put protections in place on your behalf. Tension: You have to take steps to bypass this protection to render the string as raw HTML. Outcome: take responsibility for any sanitising that your application requires.