public function parseSize($text) { $text = preg_replace("#\\[size=(\\d+):{$this->uid}\\]#", "<span class='size-\\1'>", $text); $text = str_replace("[/size:{$this->uid}]", '</span>', $text); return $text; }