public function parseSpoiler($text) { $text = str_replace("[spoiler:{$this->uid}]", "<span class='spoiler'>", $text); $text = str_replace("[/spoiler:{$this->uid}]", '</span>', $text); return $text; }