[GLLUG] Syntax checking

Edward Glowacki glowack2@msu.edu
21 Mar 2002 08:09:16 -0500


On Wed, 2002-03-20 at 19:26, Mike Szumlinski wrote:
> $myrow[0] is a text field for a journal entry, so it definitely has the
> potential to have parentheses (as well as quotation marks and anything else
> bad to the printf() statement).  Is there a way to auto convert any "bad"
> characters to whatever their code equivalent is (ie &nbsp = space) in html
> so it doesn't break the page?

Check out some of the PHP string functions, I think there are a few that
deal with this sort of thing.

http://www.php.net/manual/en/ref.strings.php


-- 
Edward Glowacki			glowack2@msu.edu
Michigan State University	
"...a partial solution to the right problem is better than a complete
solution to the wrong one." (http://uiweb.com/issues/issue14.htm)