Shaun13 Posted May 5, 2007 Share Posted May 5, 2007 Hi, I am creating some forum software. Could anyone help me create, or point me into some php code that disallows HTML, and accepts BB Coding? Thanks in advance! ~Shaun Quote Link to comment Share on other sites More sharing options...
genericnumber1 Posted May 5, 2007 Share Posted May 5, 2007 to disallow html you would do htmlentities() on the input, to bbcode you would just do a preg_replace() of it... here's something I found in about 3 seconds on google... http://www.isolated-designs.net/stuff/function_bbcode.phps Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.