(.*?)<\/title>/is', $html, $title_match); $raw_title = !empty($title_match[1]) ? trim($title_match[1]) : "Página sem título"; // A mágica acontece aqui: transforma & em & $title = html_entity_decode($raw_title, ENT_QUOTES, 'UTF-8'); // Captura a Descrição e Decodifica símbolos preg_match('/ $title, 'description' => $description, 'url' => $file, 'display_url' => str_replace('.html', '', $file) ]; } } // Ordenação A-Z usort($pages, function($a, $b) { return strcasecmp($a['title'], $b['title']); }); // 3. Salva o Cache if (!empty($pages)) { file_put_contents($cache_file, serialize($pages)); } } ?>

Nenhuma página encontrada.