Class Auth_Yadis_ParseHTML
This class is responsible for scanning an HTML string to find META tags and their attributes. This is used by the Yadis discovery process. This class must be instantiated to be used.
Package: OpenID
Copyright: 2005-2008 Janrain, Inc.
License: Apache
Author: JanRain, Inc. openid@janrain.com
Located at zp-extensions/federated_logon/Auth/Yadis/ParseHTML.php
Copyright: 2005-2008 Janrain, Inc.
License: Apache
Author: JanRain, Inc. openid@janrain.com
Located at zp-extensions/federated_logon/Auth/Yadis/ParseHTML.php
public
|
|
public
string
|
#
replaceEntities( string $str )
Replace HTML entities (amp, lt, gt, and quot) as well as numeric entities (e.g. #x9f;) with their actual values and return the new string. |
public
string
|
|
public
string
|
#
tagPattern( mixed $tag_names, mixed $close, mixed $self_close )
Create a regular expression that will match an opening or closing tag from a set of names. |
public
array
|
#
getMetaTags( string $html_string )
Given an HTML document string, this finds all the META tags in the document, provided they are found in the ... section of the document. The tag may be missing. |
public
mixed
|
#
getHTTPEquiv( string $html_string )
Looks for a META tag with an "http-equiv" attribute whose value is one of ("x-xrds-location", "x-yadis-location"), ignoring case. If such a META tag is found, its "content" attribute value is returned. |
public
string
|
$_re_flags
|
#
"si"
|
public
string
|
$_removed_re
|
#
"<!--.*?-->|<!\[CDATA\[.*?\]\]>|<script\b(?!:)[^>]*>.*?<\/script>"
|
public
string
|
$_tag_expr
|
#
"<%s%s(?:\s.*?)?%s>"
|
public
string
|
$_attr_find
|
#
'\b([-\w]+)=(".*?"|\'.*?\'|.+?)[\/\s>]'
|