Render a string as HTML in C# Razor June 7, 2023 by Tarik Use @Html.Raw(Model.MyData.Address.Replace("\r\n", "<br />"))