wp_replace_in_html_tags
wp_replace_in_html_tags ( $haystack, $replace_pairs )
Parameters:- (string) haystack The text which has to be formatted.
- (array) replace_pairs In the form array('from' => 'to', ...).
Returns:- (string) The formatted text.
Defined at: - Introduced in WordPress: 4.2.3
- Deprecated in WordPress: —
Description
Replaces characters or phrases within HTML elements only.