Preserved Topic: replace all images preg_replace (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: San Jose, CA |
posted 07-14-2002 19:34
ok, this might be easy for you guys, |
Bipolar (III) Inmate From: |
posted 07-15-2002 08:29
I guess that the easiest and most accurate way to do this would be to load $content as an xml document (assuming that the html is well formed and conforms to xhtml standards) and delete any img nodes from there |
Paranoid (IV) Inmate From: Lebanon |
posted 07-15-2002 08:59
your regular expression for removing the <img> tag is: <img[^>]+> |