Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Localization break line #543


User avatar
0
thiago floriano created

Hi,

Is it possible to break line in a cshtml file using localization? -> @L()

I'm using resource files.

Tried <br> in resource files, break line using shift + enter in the resource file. None worked.

Thanks.


2 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    <br> should work. ASP.NET MVC prevents it as default. Use this:

    @Html.Raw(L("..."))
    

    Note that; this is not special to Localization. It's about ASP.NET MVC.

  • User Avatar
    0
    thiago floriano created

    Once more, worked like a charm!!

    Thanks!!