Re: get_meta_tags bug?

From: Date: Tue, 20 Mar 2001 13:37:52 +0000
Subject: Re: get_meta_tags bug?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-44738@lists.php.net to get a copy of this message
In article <997dil$t5u$2@toye.p.sourceforge.net>, Yasuo Ohgaki <yohgaki@hotmial.com> writes >> "Paul Rees" <paulrees@page87.com> wrote in message >> news:r19NDKAFmot6Ew$a@kabsi.at... >> > Hi, >> > >> > The php function 'get_meta_tags' doesn't work when the meta tag name/ >> > content values are single quoted. It's fine for double quotes. I've had >> > a look but can't find anything on the w3 site to say whether or not >> > double quotes are required in meta tags. Does anyone know what the rule >> > is? >> > >> > (php v 4.04pl1, apache, linux 2.2.18) >FYI: >Looks like it is fixed in CVS version and get_meta_tags() now accepts single >quotes. >(I still recommends to use double quotes for your application, but we cannot >force >others and single quotes should be accepted for older HTML versions) Yes, you're right. Thanks very much. Out of interest, why do you recommend the use of double quotes? It's so much easier to use single quotes in these sort of cases: echo "<INPUT type='text' name='name' value='value'>\n"; rather than: echo "<INPUT type=\"text\" name=\"name\" value=\"value\">\n"; or: echo '<INPUT type="text" name="name" value="value">' . "\n"; ...and according to this: http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2 ... double, single, and (sometimes) no quotes are all acceptable. All the best, -- Paul Rees

« previous php.general (#44738) next »