Shortcode in Textsection Theme Spirit

Problem with php in the text section. I first tried a code section that does not work.
So a tried the same in a text section, that works nearly, but as you can see in my attachment, some of the php code is showing in the page.

Kind regards,
Ingvar Aandalen