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: enter image description here

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

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -