I solve this problem in writing my own framework and cms: small fragments of html code are loaded from the database, as well as php scripts.
In the database, the record looks like this:
<div style="font-size: 18px;"><? echo "тест";?></div> When outputting, I write the connection to the database and data output:
$where = 'id = 1'; $Current_page = $BDConnect->select('pages', Array('*'), $where); foreach ($Current_page as $html) echo $html['text_page']; As a result, the page writes text with the text:
<div><? echo "тест";</div> How to make it not a text, but a part of html-code?