Re: stripping quotes within an image tag
| From: | David Robley | Date: | Wed, 31 Jul 2002 11:34:55 +0000 |
| Subject: | Re: stripping quotes within an image tag | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110501@lists.php.net to get a copy of this message | ||
In article <20020731112838.47299.qmail@pb1.pair.com>,
daniel@electroteque.org says...
> hi how is it possible to strip quotes from an image tag ?
> i need
> <IMG height=44 alt=hspace=0 src="blah.jpg" width=148 border=0>
>
> to look like
> <IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0>
>
>
>
$string_no_quotes = str_replace('"', '',$yourstring);
if the tag can be placed in a variable/
--
David Robley
Temporary Kiwi!
Quod subigo farinam