_openid_meta_httpequiv
function _openid_meta_httpequiv
_openid_meta_httpequiv($equiv, $html)
Pull the http-equiv attribute out of an html meta element
File
- modules/openid/openid.inc, line 417
- OpenID utility functions.
Code
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!openid!openid.inc/function/_openid_meta_httpequiv/7.x