File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 19
19
"gitonomy/gitlib" : " ^1.2" ,
20
20
"cebe/markdown" : " ^1.2" ,
21
21
"voku/simple_html_dom" : " ^4.7" ,
22
- "html2text /html2text" : " ^4.3 "
22
+ "soundasleep /html2text" : " ^2.0 "
23
23
},
24
24
"autoload" : {
25
25
"psr-4" : {"PHPFUI\\ InstaDoc\\ " : " src/PHPFUI/InstaDoc/" }
Original file line number Diff line number Diff line change @@ -487,9 +487,8 @@ public function getConstructorParameters(string $className) : string
487
487
$ method = $ reflection ->getMethod ($ methodName );
488
488
$ section = new \PHPFUI \InstaDoc \Section \CodeCommon ($ this , $ className );
489
489
$ parameters = $ section ->getMethodParameters ($ method );
490
- $ html2Text = new \Html2Text \Html2Text ($ parameters , ['do_links ' => 'none ' ]);
491
490
492
- return $ html2Text -> getText ( );
491
+ return \ Soundasleep \Html2Text:: convert ( $ parameters , [ ' drop_links ' => true , ' ignore_errors ' => true ] );
493
492
}
494
493
495
494
/**
You can’t perform that action at this time.
0 commit comments