Skip to main content
WP HealthKit

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.

WP HealthKit checks for wp_kses_post()-related vulnerabilities automatically

Run a Free Audit
What Is wp_kses_post()? — WordPress Security Glossary | WP HealthKit