Hi,
I would like to be able to let my user write thing like when they post comment to my comment script on my website:
[a]http://www....[/a] or [ b ]BOLD[/ b]...
Anyone here know a class that can parse bbcode to html?
The Pear Class HTML_BBCode parser might be of some use
http://pear.php.net/package/HTML_BBCodeParser
Also id do a search of these forums there is some code around here that should help you.
Originally posted by planetsim The Pear Class HTML_BBCode parser might be of some use http://pear.php.net/package/HTML_BBCodeParser Also id do a search of these forums there is some code around here that should help you.
Peer class doesn't work here I do not have a clue if it's me or what but it can't find the filter :S
I have tryed the code here :http://elouai.com/bbcode-sample.php
pretty simple but the problem is if I forget to close the " in the url all the website is screwed 😕
Originally posted by daok Peer class doesn't work here I do not have a clue if it's me or what but it can't find the filter :S I have tryed the code here :http://elouai.com/bbcode-sample.php pretty simple but the problem is if I forget to close the " in the url all the website is screwed 😕
I have fixed temporary the problem with the link by adding a </a> always at the end of the text but a better solution would be appreaciate 🙂