Skip to content

Commit a7ea27d

Browse files
committed
Update "docs/views/html.md", parse error in example code.
The example code for the `HTML::entities()` method in the documentation had unescaped apostrophes (single quotes) in the string passed as the first parameter. A parse error would have resulted should someone try to use that code.
1 parent 37cd08f commit a7ea27d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

laravel/documentation/views/html.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ For example, the < symbol should be converted to its entity representation. Conv
2121

2222
#### Converting a string to its entity representation:
2323

24-
echo HTML::entities('<script>alert('hi');</script>');
24+
echo HTML::entities('<script>alert(\'hi\');</script>');
2525

2626
#### Using the "e" global helper:
2727

28-
echo e('<script>alert('hi');</script>');
28+
echo e('<script>alert(\'hi\');</script>');
2929

3030
<a name="scripts-and-style-sheets"></a>
3131
## Scripts And Style Sheets

0 commit comments

Comments
 (0)