RE: Using DOM textContent Property

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx</p>

In this case, I want "tjg@xxxxxxxxxxxx" 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@xxxxxxxxxxxx, 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@xxxxxxxxxxxx
831-459-5354


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux