How can the element be deleted inside this XML string?
$input= \'dfd jdh flkdjf My Test Title
Simplexml
$str = '1lalala...'; $xml = simplexml_load_string($str); unset($xml->children()->title); $output = str_replace("\n", '', $xml->asXml());