W3cubDocs

/WordPress

AtomParser::xml_escape( $string )

Source

File: wp-includes/atomlib.php

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

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