Embed icon indicating copy to clipboard operation
Embed copied to clipboard

Create from HTML

Open Tankonyako opened this issue 2 years ago • 2 comments

How to create embed from raw html?

Tankonyako avatar May 23 '22 14:05 Tankonyako

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

oscarotero avatar May 23 '22 15:05 oscarotero