Base solution for your next web application
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!!