R
R
Roman Dubinin2017-07-26 13:10:24
.NET
Roman Dubinin, 2017-07-26 13:10:24

How to add line breaks when localizing a site on .NET Core?

There are many texts on the page in which it is necessary to insert hyphens to a new line.
The *.resx editor in Visual Studio naturally inserts \r\n (shift+enter), and this is convenient (of <br />course, I'm not going to write there, especially since other workers will edit the texts).
The question is, how is it now correctly displayed in the View? I've only recently moved from PHP, so all my assumptions are vague and may sound idiotic, so I'd better not write them here :)
It's also interesting how to organize other things like bolding, adding links, etc. Was it easy for an editor unfamiliar with html to edit texts without involving me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Eremin, 2017-07-26
@EreminD

try Environment.NewLine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question