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

Bug #19443 [img] doesn't work like expected
Submitted: 2012-05-30 13:15 UTC
From: avp1983 Assigned:
Status: Open Package: HTML_BBCodeParser (version 1.2.3)
PHP Version: 5.3.3 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 32 - 2 = ?

 
 [2012-05-30 13:15 UTC] avp1983 (Alexandr Paramonov)
Description: ------------ Input: [img]http://example.org/logo.png[/img] Output: [img="<a href="http://example.org/logo.png">http://example.org/logo. png</a>" alt=""] Conf 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 Test script: --------------- include('PEAR.PHP'); include('HTML/BBCodeParser.php'); $options=parse_ini_file('BBCodeParser.ini'); $parser = new HTML_BBCodeParser($options); echo $parser->qparse($_GET['m']); Expected result: ---------------- <img src="http://example.org/logo.png" alt="" /> Actual result: -------------- [img="<a href="http://example.org/logo.png">http://example.org/logo.png </a>" alt=""]

Comments