remove_bbcode() public method

Remove given BBCode and its content, at given nesting depth
public remove_bbcode ( string $xml, string $bbcode_name, integer $depth ) : string
$xml string Parsed text
$bbcode_name string BBCode's name
$depth integer Minimum nesting depth (number of parents of the same name)
return string Parsed text
Example #1
0
 /**
  * Remove specified BBCodes and their contents
  *
  * @return string Stripped message text
  */
 protected function process()
 {
     foreach ($this->data as $bbcode) {
         $this->text = $this->text_formatter_utils->remove_bbcode($this->text, $bbcode);
     }
     return $this->text_formatter_utils->unparse($this->text);
 }