XML/XMLManager.php
protected function hasXMLSyntaxMarkers($content)
    {
        foreach (array('<', '&') as $char) {
            if (strpos($content, $char) !== false) {
                return true;
            }
        }

        return false;
    }
protected function hasXMLSyntaxMarkers($content)
    {
        foreach (array('<', '&') as $char) {
            if (strpos($content, $char) !== false) {
                return true;
            }
        }

        return false;
    }
Check if the content has any XML syntax markers that would result in
invalid XML if inserted into an XML document. If it does, the content
should either be wrapped in a CDATA section or have all of it's
special XML characters converted into entities.

@param string $content
@return boolean