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