BB Code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
lenton
Forum Commoner
Posts: 49
Joined: Sun Jun 20, 2010 6:45 am

BB Code

Post by lenton »

I am making my own forum and it's pretty much done so far. I am however stuck when it comes to BB code.

How would I convert this (without dot):
[.url]http://example.org[/url]

into this:
<a href="http://example.org" target="_blank">http://example.org</a>

without any security holes?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: BB Code

Post by Christopher »

You might want to look at this:

viewtopic.php?f=50&t=124469
(#10850)
Post Reply