Re: htmlspecialchars Problem

From: Date: Thu, 01 Feb 2001 23:32:08 +0000
Subject: Re: htmlspecialchars Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37753@lists.php.net to get a copy of this message
On Fri, 2 Feb 2001 05:58, Karl J. Stubsjoen wrote: > When I perform thi function: > $new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES); > > I get the following error: > > Warning: Wrong parameter count for htmlspecialchars() in > utility/HTMLFormObjects1-1.php on line 135 > > > Anyone know why? What version of PHP are you using? From TFM: Also note that the optional second argument was added in PHP 3.0.17 and PHP 4.0.3. Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#37753) next »