Submit
Path:
~
/
home
/
getwphos
/
public_html
/
almajd
/
wp-content
/
plugins
/
woocommerce
/
vendor
/
soundasleep
/
html2text
/
File Content:
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);
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
src
---
0755
convert.php
528 bytes
0644
html2text.php
425 bytes
0644
phpstan.neon.dist
120 bytes
0644
N4ST4R_ID | Naxtarrr