You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some helpers are added the functionality of auto-escaping for security.
84
86
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
+
85
92
### Adding Your Functions & Filters
86
93
87
94
You can add your functions and filters with configuration:
@@ -95,7 +102,9 @@ $config = [
95
102
$this->twig = new \Kenjis\CI4Twig\Twig($config);
96
103
~~~
97
104
98
-
If your function explicitly outputs HTML code, you will want the raw output to be printed. In such a case, use `functions_safe`, and **you have to make sure the output of the function is XSS free**.
105
+
If your function explicitly outputs HTML code, you want the raw output to be printed.
106
+
In such a case, use `functions_safe`, and **you have to make sure the output of
0 commit comments