Re: getting rid of bad characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, October 31, 2005 9:30 am, Dan McCullough wrote:
> I having been looking for some snippet to help me with changing MS
> Word double, quotes, single quotes and other characters to acceptable
> HTML safe characters.  The problem comes about when the people using
> the forms paste large articles from Word into the form, I do a normal
> check and add slashes but lately they have been getting lazy and using
> the special characters from Word.

There are several functions at http://php.net/htmlentities in the
User-Contributed notes for this.

Pick the one you like.

PS ALWAYS read the User-Contributed notes of related functions when
looking for this kind of stuff.  They're a Gold Mine.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux