public function jsonTidyHtmlAction()
 {
     $html = $this->_getParam('html');
     $html = preg_replace('#(<span\\s+class\\s*=\\s*"?cursor"?\\s*>)\\s*(</span>)#is', '<span class="cursor">cursor</span>', $html);
     $row = $this->_form->getRow();
     $parser = new Kwc_Basic_Text_Parser($row->component_id, $row->getModel());
     $m = Kwf_Model_Abstract::getInstance(Kwc_Abstract::getSetting($this->_getParam('class'), 'stylesModel'));
     $parser->setMasterStyles($m->getMasterStyles());
     if ($this->_getParam('allowCursorSpan')) {
         $parser->setEnableCursorSpan(true);
     }
     $html = $row->tidy($html, $parser);
     $html = preg_replace('#(<span\\s+class\\s*=\\s*"?cursor"?\\s*>)\\s*cursor\\s*(</span>)#is', '<span class="cursor"></span>', $html);
     $this->view->html = $html;
 }