WordPress at a glance
function is not described

wp_kses_no_null() WP 1.0.0

Removes any invalid control characters in a text string.

Also removes any instance of the \0 string.

No Hooks.

Return

String. Filtered content.

Usage

wp_kses_no_null( $string, $options );
$string(string) (required)
Content to filter null characters from.
$options(array)
Set 'slash_zero' => 'keep' when '\0' is allowed.
Default: 'remove'

Code of wp kses no null: wp-includes/kses.php WP 5.2.2

<?php
function wp_kses_no_null( $string, $options = null ) {
	if ( ! isset( $options['slash_zero'] ) ) {
		$options = array( 'slash_zero' => 'remove' );
	}

	$string = preg_replace( '/[\x00-\x08\x0B\x0C\x0E-\x1F]/', '', $string );
	if ( 'remove' == $options['slash_zero'] ) {
		$string = preg_replace( '/\\\\+0+/', '', $string );
	}

	return $string;
}