Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
wp_kses_normalize_entities3( array $matches )
Callback for wp_kses_normalize_entities() for regular expression.
Description Description
This function helps wp_kses_normalize_entities() to only accept valid Unicode numeric entities in hex form.
Parameters Parameters
- $matches
-
(array) (Required) preg_replace_callback() matches array
Return Return
(string) Correctly encoded entity
Source Source
File: wp-includes/kses.php
* understand HTML entities. It does its work recursively, so it won't be * fooled by a string like `javascript:javascript:alert(57)`. * * @since 1.0.0 * * @param string $string Content to filter bad protocols from. * @param string[] $allowed_protocols Array of allowed URL protocols.
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |