• One of two fundamental security rules: (1) filter and validate all input; (2) escape output
• Always escape outside data unless previously filtered
• Typical output formats that require escaping when containing user data: html, json, sql
• Functions used to escape data before outputting within html: htmlspecialchars() htmlentities() strip_tags()
One thought on “Escape Output”
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.