Skip to content

Commit 1d8553d

Browse files
authored
Update README.md
1 parent 11d7183 commit 1d8553d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff 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
8888
e($value, false)
8989
```
9090

9191
This 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-
9593
For 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

113111
So instead of escaping this way:
114112

115113
```blade
116-
{!! e($value, false) !!}
114+
{{ $value }}
117115
```
118116

119117
The values ​​will be escaped like this:
120118

121119
```blade
122-
{{ $value }}
120+
{!! e($value, false) !!}
123121
```
124122

125123
## Automatically retrieve field value

0 commit comments

Comments
 (0)