wp_filter_kses( string $data )

Sanitize content with allowed HTML KSES rules.

Description Description

This function expects slashed data.

Parameters Parameters


(string) (Required) Content to filter, expected to be escaped with slashes.

Top ↑

Return Return

(string) Filtered content.

Top ↑

Source Source

File: wp-includes/kses.php

function wp_filter_kses( $data ) {
	return addslashes( wp_kses( stripslashes( $data ), current_filter() ) );

Top ↑

Changelog Changelog

Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.