Пример #1
0
 /**
  * Parse an input string with BB code to a final output string of HTML
  *
  * @param	string	Input Text (BB code)
  * @param	bool	Whether to parse smilies
  * @param	bool	Whether to parse img (for the video bbcodes)
  * @param	bool	Whether to allow HTML (for smilies)
  *
  * @return	string	Ouput Text (HTML)
  */
 function parse_bbcode($input_text, $do_smilies, $do_imgcode, $do_html = false)
 {
     $text = parent::parse_bbcode($input_text, $do_smilies, $do_imgcode, $do_html);
     if (substr($text, -8) == '</table>') {
         // must add a trailing line break to a table that ends the text
         if ($this->is_wysiwyg('ie')) {
             $text .= "<p></p>";
         } else {
             $text .= "<br />";
         }
     }
     return $text;
 }