Skip to content

Commit

Permalink
Merge pull request #10 from benwilkins/master
Browse files Browse the repository at this point in the history
Update attribute names for twitter cards
  • Loading branch information
dusterio authored May 26, 2017
2 parents 81926bc + 315aa78 commit f244a56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Parsers/HtmlParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ class HtmlParser extends BaseParser implements ParserInterface
*/
private $tags = [
'cover' => [
['selector' => 'meta[property="twitter:image"]', 'attribute' => 'value'],
['selector' => 'meta[property="twitter:image"]', 'attribute' => 'content'],
['selector' => 'meta[property="og:image"]', 'attribute' => 'content'],
['selector' => 'meta[itemprop="image"]', 'attribute' => 'content'],
],

'title' => [
['selector' => 'meta[property="twitter:title"]', 'attribute' => 'value'],
['selector' => 'meta[property="twitter:title"]', 'attribute' => 'content'],
['selector' => 'meta[property="og:title"]', 'attribute' => 'content'],
['selector' => 'meta[itemprop="name"]', 'attribute' => 'content'],
['selector' => 'title']
Expand Down

0 comments on commit f244a56

Please sign in to comment.