I have a C# Razor page like so:
<p>@myString</p>
@code{
string myString = "Hi \nThere";
}
But instead of printing
Hi
There
it prints
Hi There
How would I get line breaks to show up? Thanks!
I have a C# Razor page like so:
<p>@myString</p>
@code{
string myString = "Hi \nThere";
}
But instead of printing
Hi
There
it prints
Hi There
How would I get line breaks to show up? Thanks!