Skip to content

Commit d79792f

Browse files
committed
Switch to Soundasleep\Html2Text
1 parent dc4756c commit d79792f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"gitonomy/gitlib": "^1.2",
2020
"cebe/markdown": "^1.2",
2121
"voku/simple_html_dom": "^4.7",
22-
"html2text/html2text": "^4.3"
22+
"soundasleep/html2text": "^2.0"
2323
},
2424
"autoload": {
2525
"psr-4": {"PHPFUI\\InstaDoc\\": "src/PHPFUI/InstaDoc/"}

src/PHPFUI/InstaDoc/Controller.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,8 @@ public function getConstructorParameters(string $className) : string
487487
$method = $reflection->getMethod($methodName);
488488
$section = new \PHPFUI\InstaDoc\Section\CodeCommon($this, $className);
489489
$parameters = $section->getMethodParameters($method);
490-
$html2Text = new \Html2Text\Html2Text($parameters, ['do_links' => 'none']);
491490

492-
return $html2Text->getText();
491+
return \Soundasleep\Html2Text::convert($parameters, ['drop_links' => true, 'ignore_errors' => true]);
493492
}
494493

495494
/**

0 commit comments

Comments
 (0)