{eyou:php} $__eyou_h1_keywords = function_exists('tpCache') ? tpCache('web.web_keywords') : ''; if ($__eyou_h1_keywords === '' && function_exists('tpCache')) { $__eyou_h1_keywords = tpCache('web.web_name'); } $__eyou_h1_keywords = trim(strip_tags(html_entity_decode((string)$__eyou_h1_keywords, ENT_QUOTES, 'UTF-8'))); $__eyou_h1_delims = array("\r", "\n", html_entity_decode(',', ENT_QUOTES, 'UTF-8'), html_entity_decode(';', ENT_QUOTES, 'UTF-8'), html_entity_decode('、', ENT_QUOTES, 'UTF-8'), ";", "|", "_", "-"); $__eyou_h1_keywords = str_replace($__eyou_h1_delims, ',', $__eyou_h1_keywords); $__eyou_h1_parts = explode(',', $__eyou_h1_keywords); $__eyou_h1_keyword = ''; foreach ($__eyou_h1_parts as $__eyou_h1_part) { $__eyou_h1_part = trim($__eyou_h1_part); if ($__eyou_h1_part !== '') { $__eyou_h1_keyword = $__eyou_h1_part; break; } } echo htmlspecialchars($__eyou_h1_keyword, ENT_QUOTES, 'UTF-8'); {/eyou:php}