Output Escaping

Use when echoing or printing any dynamic value in WordPress PHP or templates — into HTML, attributes, URLs, inline JavaScript, or textareas. Escapes at the point of output with esc_html, esc_attr, esc_url, esc_js, esc_textarea, or wp_kses_post, including the i18n variants (esc_html__, esc_attr_e). Prevents stored and reflected XSS. Apply proactively to every echoed variable, even data from the database.

wpultimatesecurity 06a3688 3 files · 11.7 KB Updated

File contents

wpultimatesecurity/WordPress-Security-Skills/tree/main/skills/output-escaping commit 06a36889ad

Frequently asked questions

npx skillmds@latest add wpultimatesecurity/output-escaping