<?php $xml = <<<XML <html> <head><title></title></head> <body> <CONTENT/> </body> </html> XML; $content = "<div id='main'>asdf asdf</div>"; echo preg_replace('/<CONTENT\/>/',$content,$xml,1);
You have javascript disabled. You will not be able to edit any code.