HTML code visible

  •  04-20-2010, 6:13 AM

    HTML code visible

    When i would edit existing a existing MySQL database field which has been filled with Cute Editor I get the HTML code back.
     
    Is there a solution for this so that only the text which I want to edit is visible and wil be written back to MySQL?
     
    Here is my existing code:
     
    <?php
                    //Step 2: Create Editor object.   
                    $editor=new CuteEditor();   
        $editor->Text=htmlentities($row_rsArtikelBewerken['hoofdtekst'], ENT_COMPAT, 'utf-8'); // Set value
                    $editor->AutoConfigure="Compact";
        $editor->CustomCulture="nl-nl";
        $editor->EditorBodyStyle="font:normal 14px calibri;";
        //Step 3: Set a unique ID to Editor   
        $editor->ID="hoofdtekst";
        $editor->Width="665px";
        $editor->Height="225px";
                    //Step 4: Render Editor   
                    $editor->Draw();   
                ?>
    Filed under:
View Complete Thread