Re: Mysterious />

From: Date: Sat, 19 Jan 2002 01:07:21 +0000
Subject: Re: Mysterious />
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-81180@lists.php.net to get a copy of this message
Solved a part of this. The nl2br (which I am using) converts "\n" to XHTML compliancy <br />. I'm still trying to replicate the other. -- Gaylen gfraley5@earthlink.net Home http://www.gaylenandmargie.com/ PHP KISGB v3.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/ "Gaylen Fraley" <gfraley5@earthlink.net> wrote in message news:20020119003502.96506.qmail@pb1.pair.com... > Those are real examples. The /> gets appended when I use preg_replace > and/or str_replace, as far as I can determine. And it's not every time. > I'll try to replicate it. I've been working with code to strip it out and I > need to get back to point zero. If I can get the code back, I will post it. > > -- > Gaylen > gfraley5@earthlink.net > Home http://www.gaylenandmargie.com/ > PHP KISGB v3.1 Guest Book > http://www.gaylenandmargie.com/phpwebsite/ > > "James Cox" <imajes@php.net> wrote in message > news:MMEPJPGPACDMPGEEKFMKMEDBCOAA.imajes@php.net... > > can you give an example? > > > > eg, <br /> is XHTML correct, however </a> /> isn't correct at all :) > > > > Thanks, > > > > James Cox > > -- > > James Cox :: imajes@php.net > > Please CC me when replying to my messages on lists. > > Was I helpful? > http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ > > > > > -----Original Message----- > > > From: Gaylen Fraley [mailto:gfraley5@earthlink.net] > > > Sent: Friday, January 18, 2002 10:49 PM > > > To: php-general@lists.php.net > > > Subject: [PHP] Mysterious /> > > > > > > > > > For some (yet) unknown reason, when some text is being entered > > > into a form, > > > a mysterious /> is being appended. It's almost as if some XML > > > functionality > > > is bein added w/o my intention. For example, I might echo "<br>" and > the > > > html source will show <br />. I might have an end anchor tag </a> that > > > comes out </a> />. > > > > > > Any clues? > > > > > > -- > > > Gaylen > > > gfraley5@earthlink.net > > > Home http://www.gaylenandmargie.com/ > > > PHP KISGB v3.1 Guest Book  > > > I¤M$úáÐsý°9¼×Yhttp://www.gaylenandmargie.com/phpwebsite/ > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > >

« previous php.general (#81180) next »