php - pear BBCodeParser2 couldn't parse WysiBB links -
i used pear bbcodeparser2 wysibb editor,it works bbcodes bold,italic,images....etc
the problem in links,it can't parse urls in topic,and when @ db table, found url bbcode unchanged.... checked links , files included,and problem still same:
php:
$config = parse_ini_file('html/bbcodeparser2.ini',true); $options = $config['html_bbcodeparser2']; $parser = new html_bbcodeparser2($options); $parser->settext($this->db->real_escape_string($_post['t_body'])); $parser->parse(); $t_body= $parser->getparsed();
img db:
i found solution
the problem should escape characters after parse() function previous code be:
$config = parse_ini_file('html/bbcodeparser2.ini',true); $options = $config['html_bbcodeparser2']; $parser = new html_bbcodeparser2($options); $parser->settext($_post['t_body']); $parser->parse(); $t_body= $this->db->real_escape_string($parser->getparsed());
Comments
Post a Comment