刀片laravel中的转义错误字符串

时间:2016-10-13 19:58:14

标签: laravel-5

刀片:

    @if ($errors->has('email'))
 <span class="help-block"> <strong>
{!! html_entity_decode( $errors->first('email') )!!}</strong> </span> 
@endif

控制器:

if($user == null){
                return redirect()->back()
                    ->withInput($request->only('email'))
                    ->withErrors(['email' => "This e-mail is not exist in our database. Please <a href='/register'>register</a>"]);
            }

我希望在ui中看到可点击的“注册”链接,但是你看到它的原始字符串: enter image description here

我还尝试了'@'和'{{{}}}'符号,但这些符号都不起作用..

0 个答案:

没有答案