Menu

#13 Clean Variable content

open
nobody
None
5
2007-07-15
2007-07-15
Anonymous
No

For each time you the use the parse method, the node attributes are not clean.
This cause that if the last node had attribute and you have textnode in the next node you will have wrong attributes for the new node.

Im my code i simple add an initialition before the making the parse:

function richParse(){
$this->iNodeAttributes=null;
return $this->parse();
}

while($this->richParse())
....

Discussion


Log in to post a comment.