SyntaxFix
Write A Post
Hire A Developer
Questions
You are close you want to use @Html.Raw(str)
@Html.Raw(str)
@Html.Encode takes strings and ensures that all the special characters are handled properly. These include characters like spaces.
@Html.Encode