note 115466 added to function.fgetss

From: Date: Tue, 29 Jul 2014 07:45:28 +0000
Subject: note 115466 added to function.fgetss
Groups: php.notes 
Request: Send a blank email to php-notes+get-200068@lists.php.net to get a copy of this message
The fgetss() function keeps the strip_tags state between reads to provide consistent results; observe the following example: hello <html> <?php echo "we don't want this;" ?> </html> world This should rightfully output only "hello world" (and some newlines); if you would apply strip_tags() on each individually read line, you would also get stuff you don't want. Source: http://news.php.net/php.internals/76247 ---- Server IP: 92.48.119.85 Probable Submitter: 37.235.122.254 ---- Manual Page -- http://php.net/manual/en/function.fgetss.php Edit -- https://master.php.net/note/edit/115466 Del: integrated -- https://master.php.net/note/delete/115466/integrated Del: useless -- https://master.php.net/note/delete/115466/useless Del: bad code -- https://master.php.net/note/delete/115466/bad+code Del: spam -- https://master.php.net/note/delete/115466/spam Del: non-english -- https://master.php.net/note/delete/115466/non-english Del: in docs -- https://master.php.net/note/delete/115466/in+docs Del: other reasons-- https://master.php.net/note/delete/115466 Reject -- https://master.php.net/note/reject/115466 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200068) next »