In Yii framework I like to put image tags to a text block and store them in db. They are generated with php code. If I get back that code from the db it doesn't run. The same is true to hyperlinks. Meanwhile I understood that it is dangerous to run code from db. Is there a way to store content with hyperlinks and images in the db and get it back for rendering?
Thanks for every hint!
some text here and here the code section <?php echo 'blabal';>
I expected : some text here and here the code section blabal
but got : some text here and here the code section <?php echo 'blabal';>