[thelist] [PHP] Ignoring an IMG tag within a string

Tim Burgan email at timburgan.com
Mon Oct 25 00:44:02 CDT 2004


I have a string similar to the following:

  "<img src="#" /><p>Phasellus interdum orci ac tortor.</p>"

I was to display this string on screen, but I want to ignore any image 
tags (like in the above example) and only display the <p> tags with the 
content between them.

Is there a simple way to do this?

I had a quite browse of the PHP manual, and didn't come up with anything 

Any help would be greatly appreciated. Thanks for your time.



Tim Burgan.
Website Development & Graphic Design

E <email at timburgan.com>
W <www.timburgan.com>

: I recommend you upgrade your browser to Mozilla Firefox
: <http://www.mozilla.org/products/firefox/>

More information about the thelist mailing list