Skip to content

Commit f776824

Browse files
committed
docs: add missing description
1 parent 6107151 commit f776824

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,16 @@ $twig = $this->twig->getTwig();
7979
* `form_error()`
8080
* `form_hidden()`
8181
* `set_value()`
82+
* `csrf_field()`
83+
* `validation_list_errors()`
8284

8385
Some helpers are added the functionality of auto-escaping for security.
8486

87+
> **Warning**
88+
> `validation_list_errors()` shows Validation Errors by `Services::validation()->listErrors()`,
89+
> and if you use user input for Validation Error messages, attackers may do XSS.
90+
> In such a case, validate user input and escape it by yourself.
91+
8592
### Adding Your Functions & Filters
8693

8794
You can add your functions and filters with configuration:

0 commit comments

Comments
 (0)