public function generateHTML() { $html = TemplateProvider::getCommentTemplate(); $html = str_replace("{{user}}", $this->user, $html); $html = str_replace("{{comment}}", $this->comment, $html); return $html; }
public function generateHTML() { $html = TemplateProvider::getCardTemplate(); $html = str_replace("{{header_url}}", $this->headerURL, $html); $html = str_replace("{{title}}", $this->title, $html); $html = str_replace("{{text}}", $this->text, $html); $html = str_replace("{{comment}}", Comment::generateCommentHTML($this->comments), $html); return $html; }