Re: saved html in mysql db displays as plain text when retrieved

  •  09-08-2010, 7:56 AM

    Re: saved html in mysql db displays as plain text when retrieved

    Dear mp5802,
     
    You can retrieve these html code from database, and then load it to cuteeditor instead of "TextBox". If you assign the html code to $editor->Text, it will display the original text at "Normal" view and display the html code at "HTML" view in CuteEditor for PHP, the following is the usage of this property: 
    $editor->Text="<p><span style='color:#cc0000;'><b>This paragraph will be edited by the first instance...</b> </span></p>";
    If you search "$editor->Text" in cuteeditor for php download package, you can find lots of related examples.
     
     
    Thanks for asking

                  
        
View Complete Thread