Actually, the concept is the following: - split the text into a number of elements (tags and text between tags) and put them into an array - fix each element (text and tags) to prevent attributes and entities from breaking the parser - check all the elements to make sure that they are either self-closing (text or empty tags) or matched by a closing tag somewhere - append sequentially the text from all the elements to $result - empty the elements array - return $result
I honestly don't see how this can lead to a slowdown... ----- Original Message ----- From: "Jimmy Brake" <[EMAIL PROTECTED]> To: "pgcd" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 2:16 PM Subject: Re: [PHP] Weird slowdown using complex functions in a loop > where are you storing the information that you are cleaning once it is > cleaned? > > are you appending it to a variable in the script? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php