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 Link to comment https://forums.phpfreaks.com/topic/50075-html-and-bb-code-help/ 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 Link to comment https://forums.phpfreaks.com/topic/50075-html-and-bb-code-help/#findComment-245772 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.