Re: stripping quotes within an image tag
| From: | lallous | Date: | Wed, 31 Jul 2002 12:34:47 +0000 |
| Subject: | Re: stripping quotes within an image tag | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110503@lists.php.net to get a copy of this message | ||
that won't really work if he used the ALT attribute too:
<img alt="Hello world image" src="helloworld.jpg" ....>
"David Robley" <robleyd@paradise.net.nz> wrote in message
news:MPG.17b2928dee29c51d98976d@news.php.net...
> 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