do_shortcodes_in_html_tags
do_shortcodes_in_html_tags ( $content, $ignore_html, $tagnames )
Parameters:- (string) content Content to search for shortcodes.
- (bool) ignore_html When true, all square braces inside elements will be encoded.
- (array) tagnames List of shortcodes to find.
Returns:- (string) Content with shortcodes filtered out.
Defined at: - Introduced in WordPress: 4.2.3
- Deprecated in WordPress: —
Description
Searches only inside HTML elements for shortcodes and process them.Any [ or ] characters remaining inside elements will be HTML encoded
to prevent interference with shortcodes that are outside the elements.
Assumes $content processed by KSES already. Users with unfiltered_html
capability may get unexpected output if angle braces are nested in tags.