W3cubDocs

/WordPress

AtomParser::xml_escape( $content )

Source

function xml_escape($content)
{
         return str_replace(array('&','"',"'",'<','>'),
            array('&amp;','&quot;','&apos;','&lt;','&gt;'),
            $content );
}

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/atomparser/xml_escape