I have a Blazor project with a ClientSide Razor Page. On that page I want to show a multiline text, for example:
Series not found
Error message
But the text is found in a C# string using a @bind.
I have tried using the normal \n to make a newline. It did pickup that it was command, but it placed a "space" in the text instead of making a new line.
I have also tried writing <br /> in the text, but then it just wrote that in the text.
My razor page:
<p>@resultString</p>
@code {
string resultString = "Series not found \nError message";
}
With the input in the code snippet I would expect the following output:
Series not found
Error message
