Re: [PHP] Re: stripping html tags

2005-06-06 Thread Richard Lynch
On Mon, June 6, 2005 1:05 am, Dotan Cohen said: > I am trying to access my local pop3 mail via wap. When I get home I > download the messages, but while away I need access to them. I am > trying to strip those tags from html mails so that they will display > in my wap browser. So, on your current

Re: [PHP] Re: stripping html tags

2005-06-06 Thread Dotan Cohen
On 6/6/05, Chris Shiflett <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > IF you know every single tag that exists! And being how I only wanted > > to remove four of them, the list of 'what to remove' is so much more > > compact than the 'leave those' list! > > For what purpose are you wanting

Re: [PHP] Re: stripping html tags

2005-06-05 Thread Chris Shiflett
Dotan Cohen wrote: IF you know every single tag that exists! And being how I only wanted to remove four of them, the list of 'what to remove' is so much more compact than the 'leave those' list! For what purpose are you wanting to remove tags? If this is for data that you plan to send to the c

Re: [PHP] Re: stripping html tags

2005-06-05 Thread Dotan Cohen
On 6/6/05, Brian V Bonini <[EMAIL PROTECTED]> wrote: > On Sun, 2005-06-05 at 18:13, Dotan Cohen wrote: > > On 6/6/05, Brian V Bonini <[EMAIL PROTECTED]> wrote: > > > On Sun, 2005-06-05 at 16:05, Dotan Cohen wrote: > > > > > > > I don't want to strip out all the tags, just certain ones. But the > >

Re: [PHP] Re: stripping html tags

2005-06-05 Thread Brian V Bonini
On Sun, 2005-06-05 at 18:13, Dotan Cohen wrote: > On 6/6/05, Brian V Bonini <[EMAIL PROTECTED]> wrote: > > On Sun, 2005-06-05 at 16:05, Dotan Cohen wrote: > > > > > I don't want to strip out all the tags, just certain ones. But the > > > problem turned out not to be in this peice of code- the scri

Re: [PHP] Re: stripping html tags

2005-06-05 Thread Dotan Cohen
On 6/6/05, Brian V Bonini <[EMAIL PROTECTED]> wrote: > On Sun, 2005-06-05 at 16:05, Dotan Cohen wrote: > > > I don't want to strip out all the tags, just certain ones. But the > > problem turned out not to be in this peice of code- the script simply > > wasn't parsing. I started another thread wit

Re: [PHP] Re: stripping html tags

2005-06-05 Thread Brian V Bonini
On Sun, 2005-06-05 at 16:05, Dotan Cohen wrote: > I don't want to strip out all the tags, just certain ones. But the > problem turned out not to be in this peice of code- the script simply > wasn't parsing. I started another thread with that problem after > failing to fix it on my own. The proto

Re: [PHP] Re: stripping html tags

2005-06-05 Thread Paul Waring
On 6/5/05, Dotan Cohen <[EMAIL PROTECTED]> wrote: > I don't want to strip out all the tags, just certain ones. You can use strip_tags() and tell it not to strip certain tags if you want, that feature has been available since PHP 3. -- Rogue Tory http://www.roguetory.org.uk -- PHP General Mailin

Re: [PHP] Re: stripping html tags

2005-06-05 Thread Dotan Cohen
On 6/5/05, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > * Dotan Cohen <[EMAIL PROTECTED]>: > > I took this example from php.net, but can't figure out where I went > > wrong. Why does this: > > $text = preg_replace("/(.|\s)*?<\/head>/i" , "" , $text); > > > > throw this error: > > syntax err

Re: Re: [PHP] Re: Stripping HTML

2001-07-26 Thread Tobe Johnson
;Jon Yaggie' <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Fri, 27 Jul 2001 13:40:45 +0700 > Subject: Re: [PHP] Re: Stripping HTML > >hmm i think there is a function specificlly for html. but i am not sure > >have you tried strip_tags() it will remove html an

Re: [PHP] Re: Stripping HTML

2001-07-26 Thread Jon Yaggie
hmm i think there is a function specificlly for html. but i am not sure have you tried strip_tags() it will remove html and php tags from a string . . . Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug,