htmlspecialchars("最新" . $keyword . "推薦新聞-PChome Online新聞"), 'description' => htmlspecialchars("最新" . $keyword . "推薦話題新聞!即時更新提供" . $keyword . "新訊:" . $newsItem[0]['title'] . ";" . $newsItem[1]['title'] . ";"), 'keywords' => htmlspecialchars($keyword . "," . $keyword . "推薦,新聞,PChome新聞"), ]; # 讀入版型 $tpl = new template('searchList'); $tpl->frame = $TEMPLATES . "smartphone/html5.php"; $tpl->setHtmlMeta($htmlMeta); $tpl->setNewsItem($newsItem); $tpl->render();