smarty-php / smarty

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.
Other
2.25k stars 711 forks source link

[Docs] Add note / warning of not using escape html settingl / modifier #865

Closed ampmonteiro closed 9 months ago

ampmonteiro commented 1 year ago

Hi in sequence of issue #863 .

I recommend that some pages / areas of the docs of v3 and v4, and even in future versions, should be updated with some kind of note / warning of not using or not be on the escape_html or $smarty->default_modifiers without a this option: ['escape:"htmlall"'] in order to help to prevent XSS attacks and use security good practice.

Example of some pages / areas in v4 docs: