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

Create from HTML #486

Open
Tankonyako opened this issue May 23, 2022 · 1 comment
Open

Create from HTML #486

Tankonyako opened this issue May 23, 2022 · 1 comment

Comments

@Tankonyako
Copy link

How to create embed from raw html?

@oscarotero
Copy link
Owner

You can create a custom http client interface that read the html code from any different source than http. See the FileClient class created to test the library without performing any real http request:

https://github.com/oscarotero/Embed/blob/master/tests/FileClient.php
This class is used here: https://github.com/oscarotero/Embed/blob/master/tests/PagesTestCase.php#L51-L54

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

No branches or pull requests

2 participants