Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept DOMDocument input #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
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.

1 participant