Skip to main content
PHP HTML Editor

Read the posted HTML

Submit the form: the server reads the editor's field and cleans it before showing it back. Try adding a link or a table first.

The PHP for this demo

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $html = $editor->posted();   // same as RichTextEditor::GetPostedHtml('Editor1')
    save_to_database($html);
}