text = $text; } public function get_html($nl2br=true) { if(!$nl2br) return str_replace(" ", "  ", htmlentities($this->text, ENT_QUOTES | ENT_IGNORE, "UTF-8")); return str_replace(" ", "  ", nl2br(htmlentities($this->text, ENT_QUOTES | ENT_IGNORE, "UTF-8"))); } public function get_text() { return $this->text; } }