We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c0e112 commit 3881110Copy full SHA for 3881110
src/Providers/TwitterCards.php
@@ -22,7 +22,7 @@ public function __construct(Adapter $adapter)
22
}
23
24
foreach ($html->getElementsByTagName('meta') as $meta) {
25
- $name = trim(strtolower($meta->getAttribute('name')));
+ $name = trim(strtolower($meta->getAttribute('name') ?: $meta->getAttribute('property')));
26
$value = $meta->getAttribute('content') ?: $meta->getAttribute('value');
27
28
if (empty($name) || empty($value)) {
0 commit comments