PHP code example of codeat3 / inlinestyle
1. Go to this page and download the library: Download codeat3/inlinestyle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codeat3 / inlinestyle example snippets
$htmldoc = new InlineStyle(file_get_contents("http://github.com"));
$htmldoc->applyStylesheet(file_get_contents("testfiles/external.css"));