I really don´t know where this question belongs, but i hope it's here

I've kinda of a problem with the Card object. If i insert a image and use php code in the scr of that image, when i publish the page the scr is allways changed to someting like <img id="BootstrapCard6-card-item0" src="images/100x100.jpg" alt="" title=""> and not the php code.
In this case it should stay <img id="BootstrapCard6-card-item0" src="<?php echo $user_photo; ?>" alt="" title="">
I can later change this, but ot's very annoying.
Can some one help me please.
Thanks.