In terms of performance , what would be better. Using PHP to echo all the HTML output so I can pepper it with the various bits of working code and variables or escape HTML to php periodically throughout the documents.
I know there may be some readability issues but I'm not to worried about that.
echo '<html>', '<body>', 'The content of the ',$container,' element is displayed in your ', $other_container, '</body>', '</html>';
<html> <body> The content of the <?php echo $container; ?> element is displayed in your <?php echo $other_container; ?> </body> </html>