Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions OpenGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ static private function _parse($HTML) {
if ($tag->hasAttribute('name') && $tag->getAttribute('name') === 'description') {
$nonOgDescription = $tag->getAttribute('content');
}

if ($tag->hasAttribute('property') &&
strpos($tag->getAttribute('property'), 'twitter:') === 0) {
$key = strtr($tag->getAttribute('property'), '-:', '__');
$page->_values[$key] = $tag->getAttribute('content');
}

}
//Based on modifications at https://github.com/bashofmann/opengraph/blob/master/src/OpenGraph/OpenGraph.php
Expand Down