Embed
Embed copied to clipboard
Create from HTML
How to create embed from raw html?
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