RE: [PHP] Using DOM textContent Property

From: Date: Wed, 03 Sep 2008 16:03:56 +0000
Subject: RE: [PHP] Using DOM textContent Property
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-279412@lists.php.net to get a copy of this message
> I think you might be better off using regexp on the text > *before* sending it through the DOM parser. Send the > user's text through a function that searches for URLs > and email addresses, creating proper links as they're > found, then use the output from that to move on to your > DOM stuff. That way, you need not create new nodes in > your nodelist. I think that's the way I'm going to have to go, but I was really hoping not to. Thanks for the suggestion! Tim Gustafson SOE Webmaster UC Santa Cruz tjg@soe.ucsc.edu 831-459-5354

« previous php.general (#279412) next »