Hello. I write something like an editor with PHP code and a problem arose in the way of creation. The code in the editor looks like this:
<html> <head> </head> <body> <?php echo 'Текст'; ?> </body> </html> Those. if I run this code in a PHP file just through echo , the php part will not start. If I run it through eval , it will give an error, because This is not pure php code.
So, how can you run it, that would be perceived and the part with html, and the part with php also started?