PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_BBCodeParser » Bug #1021

Does not parse target for URLs

Details

Submitted2004-03-16 12:30 UTC
Fromthesaur at php dot net
Assignedsjr
StatusClosed
PackageHTML_BBCodeParser
PHP Version4.3.4
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2004-03-16 12:30 UTC] thesaur at php dot net

Description:
------------
[url=http://www.server.org target=new]server[/url]

will output:

<a href='http://www.server.org'>server</a>

instead of the desired:

<a href='http://www.server.org' target='_blank'>server</a>

See http://nautadereede.nl/parser/parser.php for details.

[2004-03-16 13:07 UTC] sjr at php dot net

The correct syntax is: [url=http://www.server.org t=new]server[/url]
So t= instead of target=. This was done because another ubb php parser had the attribute like this as well, and I wanted to stay compatible.
I've noticed the example in the file in the package is wrong, I will correct this in the next release.