Skip to content

Conversation

@bartbutler
Copy link
Contributor

Parsing can be slow and sometimes we need the intermediate DOMDocument as well (to process links in code outside Html2Text, for instance).

This PR restructures convert() so that it can be easily called as two separate functions while returning the DOMDocument to the caller. is_office_document has also been moved into the options array with sensible default behavior.

There should be no side-effects of this refactor for users.

@bartbutler bartbutler force-pushed the feat/convert-document branch from 7b0785b to 4d49be6 Compare June 3, 2020 18:28
@Neustradamus
Copy link

@soundasleep: Have you seen this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants