tag_escape WordPress Filter Hook
The tag_escape hook is used to escape HTML tags in content. This is useful for preventing cross-site scripting (XSS) attacks.
apply_filters( 'tag_escape', string $safe_tag , string $tag_name ) #
Filters a string cleaned and escaped for output as an HTML tag.
Parameters
- $safe_tag
(string)The tag name after it has been escaped.
- $tag_name
(string)The text before it was escaped.
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |