Adds a target attribute to all links in passed content.
Description
By default, this function only applies to <a> tags.However, this can be modified via the $tags parameter. <em>NOTE:</em> Any current target attribute will be stripped and replaced.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/formatting.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.