function format_to_edit($content) { global $autobr; $content = stripslashes($content); if ($autobr) { $content = unautobrize($content); } $content = htmlspecialchars($content); return $content; }
function format_to_edit($content) { $content = stripslashes($content); if ($GLOBALS['autobr']) { $content = unautobrize($content); } $content = apply_filters('format_to_edit', $content); $content = htmlspecialchars($content); return $content; }
?> <div class="edit_toolbars"> <?php // --------------------------- TOOLBARS ------------------------------------ // CALL PLUGINS NOW: $Plugins->trigger_event('AdminDisplayToolbar', array('target_type' => 'Comment', 'edit_layout' => NULL)); ?> </div> <?php // ---------------------------- TEXTAREA ------------------------------------- $content = $edited_Comment->content; if ($comments_use_autobr == 'always' || $comments_use_autobr == 'opt-out') { // echo 'unBR:',htmlspecialchars(str_replace( ' ', '*', $content) ); $content = unautobrize($content); } $Form->fieldstart = '<div class="edit_area">'; $Form->fieldend = "</div>\n"; $Form->textarea('content', $content, 16, '', '', 40, ''); $Form->fieldstart = '<div class="tile">'; $Form->fieldend = '</div>'; ?> <script type="text/javascript"> <!-- // This is for toolbar plugins var b2evoCanvas = document.getElementById('content'); //--> </script> <div class="edit_actions">