PHP 8.2.31
Preview: convert.php Size: 528 B
/home/nshryvcy/taramarriagebureau.com/wp-content/plugins/woocommerce/vendor/soundasleep/html2text/convert.php

<?php
/**
 * This file allows you to convert through the command line.
 * Usage:
 *   php -f convert.php [input file]
 */

if (count($argv) < 2) {
	throw new \InvalidArgumentException("Expected: php -f convert.php [input file]");
}

if (!file_exists($argv[1])) {
	throw new \InvalidArgumentException("'" . $argv[1] . "' does not exist");
}

$input = file_get_contents($argv[1]);

require_once(__DIR__ . "/src/Html2Text.php");
require_once(__DIR__ . "/src/Html2TextException.php");

echo \Soundasleep\Html2Text::convert($input);

Directory Contents

Dirs: 1 × Files: 3

Name Size Perms Modified Actions
src DIR
- drwxr-xr-x 2026-03-03 06:25:17
Edit Download
528 B lrw-r--r-- 2026-03-03 06:25:17
Edit Download
425 B lrw-r--r-- 2026-03-03 06:25:17
Edit Download
120 B lrw-r--r-- 2026-03-03 06:25:17
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).