SitePoint Sponsor |
|
User Tag List
Results 1 to 10 of 10
Thread: Slashes, quotes and bbcode
Threaded View
-
Jun 25, 2002, 17:10 #1
- Join Date
- May 2001
- Location
- Los Angeles, California
- Posts
- 86
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Slashes, quotes and bbcode
OK, I have read all the threads here about addslashes(), stripslashes() and the evil magic_quotes. Well here it goes again, with a little twist!
I have bbcode on my site in the form of [link="URLGOESHERE"]my site[/link]. Now, I run addslashes() (without magic_quotes on (Dr. Pepper would be proud)) before I put the data in mysql. When extracting it, I run htmlspecialchars() then I replace the [link] tags, etc. However, I get (changed the URL, so the forum wouldn't mess it up):
PHP Code:<a href=""URLGOESHERE"" target="_blank">my site</a>
www.iyeinteractive.com - Website Design and Programming
www.totalnonsense.net - my site, Under Construction
Bookmarks