The problem with old() function in laravel is that the value is an entity
阿神
阿神 2017-05-16 16:50:55
0
1
335

For example

<input type="text" value="{{old('foo')}}">

At this time, if you enter an entity like  , the verification will not pass after submission. Once the page is refreshed, there will be spaces in the input and it will no longer be  . How can I solve this problem? What about this problem?

阿神
阿神

闭关修行中......

reply all(1)
小葫芦

value="{{ htmlspecialchars(old('foo')) }}"

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template