Given the php code:
$xml = << This is a link Title with some text following it.
Try this:
$parser = new SimpleXMLElement($xml); echo html_entity_decode(strip_tags($parser->asXML()));
That's pretty much equivalent to:
$parser = simplexml_load_string($xml); echo dom_import_simplexml($parser)->textContent;