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 to remove

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

[PHP] Re: stripping html tags

2005-06-05 Thread Matthew Weier O'Phinney
* 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(/head(.|\s)*?(.|\s)*?\/head/i , , $text); throw this error: syntax error at line 265, column 39: $text =

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(/head(.|\s)*?(.|\s)*?\/head/i , , $text); throw this error: syntax error at line

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 Mailing

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

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 with that

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 script simply

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 problem turned

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

Re: [PHP] Re: Stripping HTML

2001-07-27 Thread Jon Yaggie
, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 - Original Message - From: Tobe Johnson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 27, 2001 2:37 AM Subject: [PHP] Re: Stripping HTML I am trying

Re: Re: [PHP] Re: Stripping HTML

2001-07-27 Thread Tobe Johnson
] 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 and php tags from a string . . . Thank You, Jon Yaggie www.design