On a razor page I am displaying a string. The string contains a '-' that I would like to replace with a "<br />" so that it breaks on the dash.
<h3>@Model.Location.Name.Replace(" - ","<br />")</h3>
This of course doesn't work because the system encodes the output so I get
Mylocation<br />MyLocation2
instead of the desired break.
Is there a way to force the break?