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.
This commit is contained in:
parent
37cd08faea
commit
a7ea27d0a0
|
@ -21,11 +21,11 @@ ## Entities
|
|||
|
||||
#### Converting a string to its entity representation:
|
||||
|
||||
echo HTML::entities('<script>alert('hi');</script>');
|
||||
echo HTML::entities('<script>alert(\'hi\');</script>');
|
||||
|
||||
#### Using the "e" global helper:
|
||||
|
||||
echo e('<script>alert('hi');</script>');
|
||||
echo e('<script>alert(\'hi\');</script>');
|
||||
|
||||
<a name="scripts-and-style-sheets"></a>
|
||||
## Scripts And Style Sheets
|
||||
|
|
Loading…
Reference in New Issue