Property | Type | Description | |
---|---|---|---|
$custom_char_map | Map characters to match their tokens | ||
$identifiers | Sets HTML identifiers, tags/attributes are considered identifiers | ||
$status | array | Status of the parser (tagname, closing tag, etc) | |
$tag_map | Callback functions for certain tags |
Method | Description | |
---|---|---|
__construct ( $doc = '', $pos ) | ||
parse_all ( ) : boolean | Parse full document | |
parse_asp ( ) : boolean | Parse asp tags | |
parse_attributes ( ) : boolean | Parse attributes (names + value) | |
parse_cdata ( ) : boolean | Parse cdata tag | |
parse_comment ( ) : boolean | Parse comment tags | |
parse_conditional ( ) : boolean | Parse conditional tags (+ all conditional tags inside) | |
parse_doctype ( ) : boolean | Parse doctype tag | |
parse_php ( ) : boolean | Parse php tags | |
parse_script ( ) : boolean | Parse script tags | |
parse_style ( ) : boolean | Parse style tags | |
parse_tag ( ) : boolean | Parse tag | |
parse_tag_default ( ) : boolean | Default callback for tags | |
parse_text ( ) | Parse text between tags |
Method | Description | |
---|---|---|
parse_string ( ) : integer | Parse a HTML string (attributes) |
public parse_attributes ( ) : boolean | ||
return | boolean |
public parse_conditional ( ) : boolean | ||
return | boolean |
protected parse_string ( ) : integer | ||
return | integer |
public parse_tag_default ( ) : boolean | ||
return | boolean |
public $identifiers |
public array $status | ||
return | array |