Prepares the metadata by: – stripping all HTML tags and tag entities.
Description
- converting non-tag entities into characters.
Parameters
$metadata
stringrequired- The metadata content to prepare.
Source
private function prepare_metadata_for_output( $metadata ) {
$metadata = html_entity_decode( $metadata, ENT_QUOTES, get_bloginfo( 'charset' ) );
$metadata = wp_strip_all_tags( $metadata );
return $metadata;
}
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.