GtkdocHtml::__construct
Create a new GtkdocHtml instance.
A string containing the HTML of the gtkdoc file to parse must be passed in. The real processing will be triggered by the process() method. Parsing a file can be easily performed by using file_get_contents(): <code> $html = new GtkdocHtml(@file_get_content($file)); </code> URL resolution is performed by a (customizable) mangle table, that is the array returned by getMangleRules(). Every href is matched against a serie of regex patterns (the keys of the mangle table) and if matches it is substituted via preg_replace() with the replacement text (the value of the mangle rule). This substitution stop at the first match. If no rule matches, the href value is left untouched.
Signature
public function __construct(String
$html )
Parameters
$html
— object- A chunk of html (UTF-8 encoded).