Home » HTML » HTML_BBCodeParser » Bug #1021
Does not parse target for URLs
Details
| Submitted | 2004-03-16 12:30 UTC |
|---|---|
| From | thesaur at php dot net |
| Assigned | sjr |
| Status | Closed |
| Package | HTML_BBCodeParser |
| PHP Version | 4.3.4 |
| OS | Irrelevant |
| 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.