Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.4

Bug #19426 Wrong sustitutions, various bugs
Submitted: 2012-05-19 08:32 UTC
From: danmath Assigned:
Status: Open Package: HTML_BBCodeParser (version 1.2.3)
PHP Version: 5.3.8 OS: Windows 7 Home Basic
Roadmaps: (Not assigned)    
Subscription  


 [2012-05-19 08:32 UTC] danmath (Daniel mathew)
Description: ------------ Input: [url]http://www.google.com[/url] Output: <a>http://www.google.com[]http://www.google.com</a> Input: [img]http://www.sitepoint.com/images/sitepoint-logo.gif[/img] Output: <img>http://www.sitepoint.com/images/sitepoint-logo.gif[" alt=""/img] You also have various instances of 'PEAR::getStaticProperty...' that are not valid code. I had to replace a few for : $pear= new PEAR(); $pear->getStaticProperty.... Test script: --------------- $options=parse_ini_file($_SERVER['DOCUMENT_ROOT'].'/pl/BBCodeParser.ini'); $parser = new HTML_BBCodeParser($options); $this->text= $parser->qparse(htmlspecialchars($post['Message'])); // options file: [HTML_BBCodeParser] ; possible values: single|double ; use single or double quotes for attributes quotestyle = double ; possible values: all|nothing|strings ; quote all attribute values, none, or only the strings quotewhat = all ; the opening tag character open = [ ; the closing tag character close = ] ; possible values: true|false ; use xml style closing tags for single html tags (<img> or <img />) xmlclose = true ; possible values: a comma seperated list of filters ; comma seperated list of filters to use filters = Basic,Extended,Links,Images Expected result: ---------------- I expect a link and an image to show up. Actual result: -------------- I get the outputs I specified.

Comments