Examples

Extracting Plain Text

This sample demonstrates retrieving the RichTextEditor HTML content in the plain text format. If you want to store the document text in a database which is searchable, you can use the output of this property to create an HTML-free copy for indexing.

HTML:


PlainText:


PlainText with line feeds:

Demo Code:

<?php
     $rte=new RichTextEditor();
     $rte->Name="Editor1";
     $rte->MvcInit(); 
?>

<?php echo $rte->GetString() ?>