You can't put php code into an html editor.
You should probably set this up as two separate editable regions and put the php code outside of the html that is editable in the html editor. It is an html editor and not a php editor. Getting it to work with php, though possible, would be tricky and dangerous.