Class HtmlParser
Class HtmlParser.
To use, create an instance of the class passing HTML text.
Then invoke parse() until it's false.
When parse() returns true, $_NodeType, $_NodeName $_NodeValue and $_NodeAttributes are updated.
Copyright (c) 2003 Starnetsys, LLC. All rights reserved. Redistribution of source must retain this copyright notice.
Starnetsys, LLC (http://starnetsys.com) specializes in website design and software consulting
Package: Core\Backend
Copyright: Starnetsys, LLC.
Author: Starnetsys, LLC.
Located at classes/class.htmlparser.php
Copyright: Starnetsys, LLC.
Author: Starnetsys, LLC.
Located at classes/class.htmlparser.php
public
|
|
public
string
|
|
public
integer
|
|
public
integer
|
|
public
boolean|array
|
|
public
string
|
|
public
integer
|
|
public
string
|
|
public
string
|
|
public
array
|
|
public
string
|
|
public
integer
|
|
protected
boolean
|
|
public
boolean
|
|
protected
array
|
|
protected
boolean
|
|
protected
number
|
|
protected
boolean
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
number|string
|
|
protected
boolean
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
#
_skipToStringInTag( string $needle )
Returns text between current position and $needle, inclusive, or "" if not found. |
integer |
NODE_TYPE_ELEMENT
|
1 |
#
Node type ID for elements. |
integer |
NODE_TYPE_ENDELEMENT
|
2 |
#
Node type ID for endelements. |
integer |
NODE_TYPE_TEXT
|
3 |
#
Node type ID for texts. |
integer |
NODE_TYPE_COMMENT
|
4 |
#
Node type ID for comments. |
integer |
NODE_TYPE_DONE
|
5 |
#
Node type ID when done. |
protected
integer
|
$_NodeType |
|
#
Field iNodeType. |
protected
string
|
$_NodeName | "" |
#
Field iNodeName. |
protected
string
|
$_NodeValue | "" |
#
Field iNodeValue. |
protected
array
|
$_NodeAttributes | [] |
#
Field iNodeAttributes. |
protected
string
|
$_HtmlText | '' |
|
protected
integer
|
$_HtmlTextLength |
|
|
protected
integer
|
$_HtmlTextIndex | 0 |