public function remove_bbcode($xml, $bbcode_name, $depth = 0) { return \s9e\TextFormatter\Utils::removeTag($xml, strtoupper($bbcode_name), $depth); }
/** * 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); }