Core Function
View Source on Trac ↗ wp_replace_in_html_tags()
wp_replace_in_html_tags( mixed $haystack, mixed $replace_pairs ) Replaces characters or phrases within HTML elements only.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $haystack string | The text which has to be formatted. Required |
| $replace_pairs array | In the form array('from' => 'to', ...). Required |
Return Value
(string)
The formatted text.
Function Information
Since Version
4.2.3
Source File
wp-includes/formatting.php
Advertisement