0

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!

Jeremy P
  • 1,179
  • 1
  • 12
  • 20

0 Answers0