HtmlParser()
clearAttributes()
currentChar()
isValidTagIdentifier()
moveNext()
parse()
readTag()
readValueInTag()
skipBlanksInTag()
skipEndOfTag()
skipEqualsInTag()
skipInTag()
skipToBlanksInTag()
skipToBlanksOrEqualsInTag()
skipToElement()
skipToInTag()
skipToStringInTag()
$iHtmlText
$iHtmlTextIndex
$iHtmlTextLength
$iNodeAttributes
$iNodeName
$iNodeType
$iNodeValue
Class HtmlParser.
To use, create an instance of the class passing HTML text. Then invoke parse() until it's false. When parse() returns true, $iNodeType, $iNodeName $iNodeValue and $iNodeAttributes are updated.
HtmlParser($aHtmlText)
Constructs an HtmlParser instance with the HTML text given.
clearAttributes()
currentChar()
isValidTagIdentifier($name)
moveNext()
parse()
Parses the next node. Returns false only if the end of the HTML text has been reached. Updates values of iNode* fields.
readTag()
readValueInTag()
skipBlanksInTag()
skipEndOfTag()
skipEqualsInTag()
skipInTag($chars)
skipToBlanksInTag()
skipToBlanksOrEqualsInTag()
skipToElement()
skipToInTag($chars)
skipToStringInTag($needle)
$iHtmlText
$iHtmlTextIndex
$iHtmlTextLength
$iNodeAttributes
A string-indexed array containing attribute values of the current node. Indexes are always lowercase.
$iNodeName
For elements, it's the name of the element.
$iNodeType
May be one of the NODE_TYPE_* constants above.
$iNodeValue
For text nodes, it's the text.