Merge remote-tracking branch 'upstream/master' into bootswatch

This commit is contained in:
Ahmad Nazir Raja
2014-05-15 23:50:51 +02:00
7 changed files with 109 additions and 91 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
{
@@ -126,8 +127,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,