https://www.icyphoenix.com/viewtopic.php?f=35&t=8633&p=56490#p56490
-----------------------------------
Mighty Gorgon
Sun 26 Aug, 2012 13:46

Re: Remove Bbcode Tags In Posting Body
-----------------------------------
You have at least three ready to use functions in bbcode.php

[codeblock]	/*
	* This function will strip common BBCodes tags, but some of them will be left there (such as CODE or QUOTE)
	*/
	function bbcode_killer($text, $id = false)

	/*
	* This function will strip from a message some BBCodes, all BBCodes $uid, and some other formattings.
	* The result will be suitable for email sendings.
	*/
	function plain_message($text, $id = false)

	/*
	* This function will strip all specified BBCodes tags or all BBCodes tags
	*/
	function bbcode_clean($text, &$tags)[/codeblock]


I think you know how to use them... :-)


