RE: [PHP] Using DOM textContent Property

From: Date: Wed, 10 Sep 2008 16:35:43 +0000
Subject: RE: [PHP] Using DOM textContent Property
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-279793@lists.php.net to get a copy of this message
Nathan, Thanks for your help on this. I actually need to do this a different way I think though. The problem is that I'm not just replacing a text entity with a link entity. For example, consider this paragraph: <p>For information, please contact tjg@soe.ucsc.edu.</p> In this case, I want "tjg@soe.ucsc.edu" to be a link, but not the rest of the paragraph. That means that the <p> entity has to be split into three separate entities - one DOMText for "For information, please contact ", one DOMEntity node for tjg@soe.ucsc.edu, and one DOMText node for ".". This seems doable with the DOM modle, but complicated. I'm thinking regular expressions might be the way to go again. :\ Tim Gustafson SOE Webmaster UC Santa Cruz tjg@soe.ucsc.edu 831-459-5354

« previous php.general (#279793) next »