Property | Type | Description | |
---|---|---|---|
$environment |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) | Constructor | |
__invoke ( string $html ) : string | Convert | |
convert ( $html ) : string | Convert | |
getConfig ( ) : League\HTMLToMarkdown\Configuration | ||
getEnvironment ( ) : |
Method | Description | |
---|---|---|
convertToMarkdown ( League\HTMLToMarkdown\ElementInterface $element ) : string | Convert to Markdown | |
sanitize ( string $markdown ) : string |
Method | Description | |
---|---|---|
convertChildren ( League\HTMLToMarkdown\ElementInterface $element ) | Convert Children | |
createDOMDocument ( string $html ) : DOMDocument |
public __construct ( array $options = [] ) | ||
$options | array | Configuration options |
protected convertToMarkdown ( League\HTMLToMarkdown\ElementInterface $element ) : string | ||
$element | League\HTMLToMarkdown\ElementInterface | |
return | string | The converted HTML as Markdown |
public getConfig ( ) : League\HTMLToMarkdown\Configuration | ||
return | League\HTMLToMarkdown\Configuration |