|
|
|
|
|
by jeltz
4904 days ago
|
|
PHP does not support HTML escaping and is therefor not secure by default. At least twig escapes HTML by default (I am not up to date with PHP so the others might too). You do not want to type <?php echo htmlspecialchars($var, ENT_QUOTES) ?> every time you want to output data. (Yes, I know it could probably be written shorter but my PHP is rusty. My point still remains though, you have to remember to type it every time.) |
|
You can then run this entire array through htmlentities or htmlspecialchars before doing include().