wp_kses_html_error( string $string )
Handles parsing errors in wp_kses_hair()
.
Description Description
The general plan is to remove everything to and including some whitespace, but it deals with quotes and apostrophes as well.
Parameters Parameters
- $string
-
(string) (Required)
Return Return
(string)
Source Source
File: wp-includes/kses.php
function wp_kses_html_error( $string ) { return preg_replace( '/^("[^"]*("|$)|\'[^\']*(\'|$)|\S)*\s*/', '', $string ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |