wp_kses_post()
WordPress function that filters HTML content allowing only a safe subset of HTML tags and attributes.
How it works
WordPress function that filters HTML content allowing only a safe subset of HTML tags and attributes.
In WordPress
Use for rich HTML content like post content that needs some HTML preserved while stripping dangerous elements.
Related terms
WP HealthKit checks for wp_kses_post()-related vulnerabilities automatically
Run a Free Audit