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
Post a Comment