Ckeditor does not show php tags in textarea

0

I'm using Ckeditor, everything works fine, however, I can not make posts ('tutorials') that contain php tags. For example:

<?php
acho 'teste';

The <?php tag is not displayed. Is there any configuration of Ckeditor itself that would solve this?

    
asked by anonymous 11.11.2016 / 15:27

1 answer

0

I found a solution here: link

With this, before sending the content to Ckeditor I am doing a character replacement:

str_replace('&', '&amp;', $post->conteudo);
    
11.11.2016 / 17:21