An HTMLString class that isn't automatically encoded upon output is offered by ASP.NET Core MVC. As it will reveal an XSS vulnerability, this should never be used with untrusted data.
HTMLString