WordPress at a glance
function is not described

wp_kses_html_error() WP 1.0.0

Handles parsing errors in wp_kses_hair().

The general plan is to remove everything to and including some whitespace, but it deals with quotes and apostrophes as well.

No Hooks.

Return

String.

Usage

wp_kses_html_error( $string );
$string(string) (required)

Code of wp kses html error: wp-includes/kses.php VER 5.0.3

<?php
function wp_kses_html_error($string) {
	return preg_replace('/^("[^"]*("|$)|\'[^\']*(\'|$)|\S)*\s*/', '', $string);
}