_openid_meta_httpequiv
- Versions
- 6 – 7
_openid_meta_httpequiv($equiv, $html)
Pull the http-equiv attribute out of an html meta element
Code
modules/openid/openid.inc, line 207
<?php
function _openid_meta_httpequiv($equiv, $html) {
preg_match('|<meta\s+http-equiv=["\']'. $equiv .'["\'](.*)/?>|iUs', $html, $matches);
if (isset($matches[1])) {
preg_match('|content=["\']([^"]+)["\']|iUs', $matches[1], $content);
if (isset($content[1])) {
return $content[1];
}
}
return FALSE;
}
?>Login or register to post comments 