Update to use sunra/php-simple-html-dom-parser

Remove the simple-html-dom parser that relies on an outdated repo. This
appears to be the most popular repo for the dom library.
This commit is contained in:
Craig Davis
2014-05-14 19:50:33 -05:00
parent 0ac35d16a8
commit c19ecaf71e
4 changed files with 105 additions and 89 deletions

View File

@@ -11,6 +11,7 @@ use Assetic\Asset\FileAsset;
use Assetic\Filter;
use Michelf\MarkdownExtra;
use Michelf\SmartyPants;
use Sunra\PhpSimple\HtmlDomParser;
class HtmlCommand extends Command
{
@@ -113,8 +114,7 @@ class HtmlCommand extends Command
$resumeHtml = SmartyPants::defaultTransform($resumeHtml);
// Construct the title for the html document from the h1 and h2 tags
$simpleDom = new \simple_html_dom();
$simpleDom->load($resumeHtml);
$simpleDom = HtmlDomParser::str_get_html($resumeHtml);
$title = sprintf(
'%s | %s',
$simpleDom->find('h1', 0)->innertext,