Edit report at https://pear.php.net/bugs/bug.php?id=12215&edit=1

ID: 12215
Updated by: daniel.oconnor@gmail.com
Reported By: zedel at isl dot org
Summary: [url] doesn't work like expected
Status: Open
Type: Bug
Package: HTML_BBCodeParser
Package Version: 1.2.2
PHP Version: Irrelevant
Roadmap Versions:
New Comment:

Patches welcome folks, I have no clear idea on how to fix this.

The Images/Links default behaviour has been fixed, so it should happen
less. Email
behaviour is unchanged atm.

Previous Comments:

[2008-11-07 08:26:50] rmens

Same problem exists with the Email filter, which replaces all email
addresses instead of only those in [email] tags.


[2007-10-19 10:14:24] inspirationdate

This is really messy. If we list the filters with Links before Images,
images get parsed as urls first and then the image parsing doesn't

Works fine:
filters = Images,Links

Is broken:
filters = Links,Images

smarterPPLinkExpand skips urls that are in [url] tags, can't this just
be extended to include all tags?

And zedel is right, this really needs to be something we can


[2007-10-10 05:56:38] zedel

HTML_BBCodeParser replaces everything which looks like a url with a
link, not only in [url] tags. And there is no easy way to disable
smarterPPLinkExpand (please, no 'but i know better what you want' -
systems without a way to disable them)

Test script:
$parser = new HTML_BBCodeParser(array('filters' =>
$parser->qparse("This is an example for www.php.net:
<link>http://www.php.net</link> and here is the real link:

Expected result:
his is an example for www.php.net: <link>http://www.php.net</link> and
here is the real link: <a href="http://www.php.net">PHP</a>


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedJan 2, '12 at 2:14a
activeJan 2, '12 at 2:14a

1 user in discussion

Daniel Oconnor: 1 post



site design / logo © 2022 Grokbase