Helpers for HTTP content fetching and handling

package org.openpsa.httplib

 Methods

get_anchor_values (string $html, string $relation)

Get value(s) of an anchor tag(s) in HTML page.
Static

Parameters

$html

stringHTML to parse

$relation

stringRelation (rel) of the anchor to fetch

Returns

arrayLinks matching given criteria as arrays containing keys title, href and value

get_meta_value (string $html, string $name)

Get value of a meta tag in HTML page.
Static

Parameters

$html

stringHTML to parse

$name

stringName of the meta tag to fetch

 Properties

 

mixed $_quotes