HTML in Laravel translated string -


i translating following string:

<p> {{{ trans('myapp.signup_instructions', [ 'email' => '<strong>'.$invitation->email .'</strong>']) }}}</p> 

however on our website can still see "<strong>user@domain.com</strong>" text. aiming convert e-mail parameter in string bold text

how can achieve that?

in laravel 5 should use {!! !!} output variable without escaping:

{!! trans('myapp.signup_instructions', ['email' => '<strong>'.$invitation->email .'</strong>']) !!}  

read more: http://laravel.com/docs/master/upgrade#upgrade-5.0 (blade tag changes section)

ps. not related angularjs


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -