Razor Keep Linebreak - C#

Razor Keep Linebreak - C#

code snippet

c#
@Html.Raw(Html.Encode(Model.Text).Replace("\n", "<br />"))

"Wonder rather than doubt is the root of all knowledge"

Contact me!

Have questions? Feel free to use the form or send me an email with any questions.

I will be responsive to your requests and your questions.