Honestly, I know that this is not the most pleasant thing in the world, but it is impeccable, and this means that your translators do not need to enter any code in their translations:
Based on the answers already received, why donβt you just use Html.Raw , but before you do this, replace \r\n , which uses Shift + Enter in the resource file, with <br />
So say, for example, you had a line called Welcome in the ApplicationMessage resource file, you could do:
@Html.Raw(ApplicationMessage.Welcome.Replace("\r\n", "<br />")
This will give you what you need. Here's a similar question:
HTMLencode HTMLdecode
mattytommo
source share