AtomParser::xml_escape() WordPress Method
The AtomParser::xml_escape() method is a utility function forescaping strings for use in XML documents. It replaces any specialcharacters in the string with their XML entity equivalents. This isuseful for creating XML documents from data that may contain specialcharacters, such as user-generated content.
AtomParser::xml_escape( $content ) #
Source
File: wp-includes/atomlib.php
function xml_escape($content) { return str_replace(array('&','"',"'",'<','>'), array('&','"',''','<','>'), $content ); }
Expand full source codeCollapse full source codeView on TracView on GitHub