dimanche 29 mai 2016

Is it possible to use new line break in a language files?

I've tried to use <br />, \n\r, &#13;&#10; to start new line but all these symbols do not work, because Laravel escapes messages.

I wonder is there any way to start new line in a message?

// resources/lang/en

return [
    'some_message' => 'Some text &#13;&#10; New line here'
];

I understand I could extend Translator class or write my own helper, but I'm looking for more elegant solution.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1TOmiAo
via IFTTT

Aucun commentaire:

Enregistrer un commentaire