File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -82,16 +82,14 @@ Warnings and limitations
8282
8383## Escaped echo without double-encode
8484
85- LaravelCollective internally use most of the time escaped echo without double-encode:
85+ LaravelCollective internally used most of the time escaped echo without double-encode:
8686
8787``` php
8888e($value, false)
8989```
9090
9191This prevents the encoded HTML entities from being encoded a second time (` & ` => ` & ` )
9292
93- So, you will see the use of this function in the replacement to keep the original behavior.
94-
9593For example:
9694
9795``` blade
@@ -106,20 +104,20 @@ The HTML result will be:
106104< ; strong> ; Name & ; firstname< ; /strong> ;
107105```
108106
109- ### Escaped with double-encode
107+ For simplicity and clarity purpose, this package use regular Blade echo syntax instead of escaped echo without double-encode.
110108
111- If you do not want to use this feature you can pass the ` --escape-with -double-encode ` option to the command.
109+ If you want to keep the original behavior of LaravelCollective, use ` --escape-without -double-encode ` option to the command.
112110
113111So instead of escaping this way:
114112
115113``` blade
116- {!! e( $value, false) !! }
114+ {{ $value } }
117115```
118116
119117The values will be escaped like this:
120118
121119``` blade
122- {{ $value } }
120+ {!! e( $value, false) !! }
123121```
124122
125123## Automatically retrieve field value
You can’t perform that action at this time.
0 commit comments