WPDev.one
Core Function
View Source on Trac ↗

wp_kses_no_null()

wp_kses_no_null( mixed $content, mixed $options = null )

Removes any invalid control characters in a text string.

Parameters 1 required

Name / Type Description
$content
string

Content to filter null characters from.

Required
$options
array

Set 'slash_zero' => 'keep' when '\0' is allowed. Default is 'remove'.

Return Value

(string)
Filtered content.

Function Information

Since Version
1.0.0
Source File
wp-includes/kses.php
Advertisement