RE: [PHP] what do i need to disable

2007-02-08 Thread Don
I asked this question awhile ago and never really visited the issue till now. The response I got showed me how to disable everything, but I want to allow basic html tags. ~My original question~ My next task is disable harmful tags/scripts in a full text field. I want to store a bio type field

RE: [PHP] what do i need to disable

2007-02-08 Thread Brad Fuller
-Original Message- From: Don [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 3:28 PM To: php-general@lists.php.net Subject: RE: [PHP] what do i need to disable I asked this question awhile ago and never really visited the issue till now. The response I got showed me

Re: [PHP] what do i need to disable

2007-02-08 Thread Steffen Ebermann
It's more secure to begin with converting the string using htmlentities() and reconverting allowed tags afterwards. See http://alistapart.com/articles/secureyourcode http://alistapart.com/articles/secureyourcode2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] what do i need to disable

2007-02-08 Thread Don
I asked this question awhile ago and never really visited the issue till now. The response I got showed me how to disable everything, but I want to allow basic html tags. http://us3.php.net/strip_tags You can use the optional second parameter to specify tags which should not be stripped.

RE: [PHP] what do i need to disable

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 15:32 -0700, Don wrote: I asked this question awhile ago and never really visited the issue till now. The response I got showed me how to disable everything, but I want to allow basic html tags. http://us3.php.net/strip_tags You can use the optional second

Re: [PHP] what do i need to disable

2007-02-08 Thread Steffen Ebermann
By using something like $var = preg_replace( !lt;(i|b|small|big|code)gt;(.+)lt;/\\1gt;!isU, \\1\\2/\\1, $var); you can accomplish a solution where only closed tags will be reconverted. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] what do i need to disable

2007-02-07 Thread Don
I asked this question awhile ago and never really visited the issue till now. The response I got showed me how to disable everything, but I want to allow basic html tags. ~My original question~ My next task is disable harmful tags/scripts in a full text field. I want to store a bio type field

RE: [PHP] what do i need to disable

2007-01-19 Thread WeberSites LTD
Check this out : http://www.weberdev.com/get_example-4473.html berber -Original Message- From: Don [mailto:[EMAIL PROTECTED] Sent: Friday, January 19, 2007 7:38 AM To: php-general@lists.php.net Subject: [PHP] what do i need to disable Ok, You have been very helpful with my

[PHP] what do i need to disable

2007-01-18 Thread Don
Ok, You have been very helpful with my questions so far and I thank you for that. My next task is disable harmful tags/scripts in a full text field. I want to store a bio type field and I am considering allowing html (to allow a myspace type of customization to the page), but I am