/** * Helper method to modify the cell content before it is placed in the HTML. * * @param string Cell content * * @return string Modified cell content */ protected function modifyCellContent($content) { $content = parent::modifyCellContent($content); if ($this->parser->is_wysiwyg('ie')) { $content = "<p>{$content}</p>"; return str_replace('<p></p>', '', $content); } else { if ($content === '') { // need to put something in the cell for FF return '<br _moz_dirty="" type="_moz" />'; } else { return $content; } } }
/** * Parses the [table] tag and returns the necessary HTML representation. * TRs and TDs are parsed by this function (they are not real BB codes). * Classes are pushed down to inner tags (TRs and TDs) and TRs are automatically * valigned top. * * @param string Content within the table tag * @param string Optional set of parameters in an unparsed format. Parses "param: value, param: value" form. * * @return string HTML representation of the table and its contents. */ function parseTableTag($content, $params = '') { $helper = new vBForum_BBCodeHelper_Table($this); return $helper->parseTableTag($content, $params); }