.html. Every file there is part of the parse → serialize * round-trip test (tests/Unit/Integrations/Divi/BlockTree/ParserTest.php). * Usage (DDEV, WordPress root): * wp eval-file wp-content/plugins/WP-LIT-MCP/tests/Integration/divi-export-page.php * : lowercase letters, digits and dashes, e.g. "startseite-mit-global". * Only use pages without personal data – fixtures are committed. * No `declare(strict_types=1);` – wp eval-file runs the file through eval(). */ defined('WP_CLI') && WP_CLI || exit; $args = $args ?? []; $postId = (int) ($args[0] ?? 0); $name = (string) ($args[1] ?? ''); if ($postId <= 0 || preg_match('/^[a-z0-9]+(-[a-z0-9]+)*$/', $name) !== 1) { WP_CLI::error('Usage: divi-export-page.php '); } $post = get_post($postId); if (! $post instanceof WP_Post) { WP_CLI::error('No post ' . $postId); } $content = (string) $post->post_content; if (! str_contains($content, '