function make_editor_form()
 {
     $form = new disco();
     $editor_name = html_editor_name($this->site_id);
     $params = html_editor_params($this->site_id);
     if (strpos($editor_name, 'loki') === 0) {
         unset($params['paths']['site_feed']);
         unset($params['paths']['finder_feed']);
         unset($params['paths']['default_site_regexp']);
         unset($params['paths']['default_type_regexp']);
         $params['widgets'] .= ' +source +debug';
     }
     $form->add_element('demo', $editor_name, $params);
     $form->set_display_name('demo', ' ');
     $form->set_actions(array('Submit'));
     $form->run();
     if ($form->get_value('demo')) {
         echo '<h3>Output</h3>' . "\n";
         echo '<p>(For security reasons, this may differ from the Raw and Tidied markup -- it has been run through <a href="http://htmlpurifier.org/">HTML Purifier</a>)</p>';
         echo '<div class="echoBack">' . "\n";
         echo carl_get_safer_html($form->get_value('demo'));
         echo '</div>' . "\n";
         echo '<h3>Tidied Markup</h3>' . "\n";
         echo '<p>This is what you submitted after being run through <a href="http://tidy.sourceforge.net/">Tidy</a></p>';
         echo '<div class="echoBack">' . "\n";
         echo nl2br(htmlspecialchars($form->get_value('demo')));
         echo '</div>' . "\n";
         echo '<h3>Raw Markup</h3>' . "\n";
         echo '<p>This is exactly what you submitted</p>';
         echo '<div class="echoBack">' . "\n";
         echo nl2br(htmlspecialchars(conditional_stripslashes($_POST['demo'])));
         echo '</div>' . "\n";
     }
 }
 function pre_show_form()
 {
     /* echo "<h1>Step Five &#8212; Send the Newsletter</h1>";
     		echo "<p>You may use Reason to send your newsletter. You may enter Carleton NetIDs or emails in the \"to\" field, separated by semicolons or commas. You may also review the body of the email below. To make any changes, press the button labeled \"Go Back\".</p><p>Alternatively, you can copy and paste the newsletter as you see it below into your preferred email client.</p>";
     		echo '<div id="tabList" class="haveJS"><ul><li><a href="#use_reason_tab">Send using Reason</a></li><li><a href="#use_client_tab">Send with your own email client</a></li></ul></div>';
     		echo '<div id="use_reason_tab">'; */
     echo '<div id="ComposeEmailStep">' . "\n";
     echo "<p class='basicInstructions'>Copy and paste the newsletter as you see it below into your preferred email client.</p>";
     $final_text = tidy(carl_get_safer_html($this->controller->get_form_data('newsletter_loki')));
     echo '<div id="html" class="previewDiv">' . $final_text . '</div>';
     echo '</div>';
 }
/**
 * @deprecated use carl_get_safer_html
 */
function get_safer_html($string)
{
    return carl_get_safer_html($string);
}