php tags half removed

  •  05-21-2008, 10:31 PM

    php tags half removed

    I'm having a problem with CE replacing code that is in my content. For example when I load something like this.
     
     
    <?php include "header.php"; ?>
    This is some content.
     
     
    The editor removes the opening PHP tag but leaves the rest. If I use htmlentities then I only get the straight code, is there  a way for the editor to render the HTML and ignore anything that is wrapped in the php brackets?
     
    I am ripping the content out of files not a db:
     
            <?php
                $editor=new CuteEditor();
                $editor->ID="Editor1";
                $editor->Text=file_get_contents($file);
                $editor->EditorBodyStyle="font:normal 12px arial;";
                $editor->EditorWysiwygModeCss="php.css";
                $editor->AutoConfigure="Full";
                $editor->FilesPath="CuteEditor_Files";
                $editor->Draw();
                $editor=null;
            ?>
View Complete Thread