note 70964 added to function.htmlentities

From: Date: Mon, 06 Nov 2006 18:41:36 +0000
Subject: note 70964 added to function.htmlentities
Groups: php.notes 
Request: Send a blank email to php-notes+get-119436@lists.php.net to get a copy of this message
If you are building a loadvars page for Flash and have problems with special chars such as " & ", " ' " etc, you should escape them for flash: Try trace(escape("&")); in flash' actionscript to see the escape code for &; & = %26 ' = %27 <?php function flashentities($string){ return str_replace(array("&","'"),array("%26","%27"),$string); } ?> Those are the two that concerned me. YMMV. ---- Server IP: 201.216.232.3 Probable Submitter: 200.114.132.9 ---- Manual Page -- http://www.php.net/manual/en/function.htmlentities.php Edit -- https://master.php.net/note/edit/70964 Del: integrated -- https://master.php.net/note/delete/70964/integrated Del: useless -- https://master.php.net/note/delete/70964/useless Del: bad code -- https://master.php.net/note/delete/70964/bad+code Del: spam -- https://master.php.net/note/delete/70964/spam Del: non-english -- https://master.php.net/note/delete/70964/non-english Del: in docs -- https://master.php.net/note/delete/70964/in+docs Del: other reasons-- https://master.php.net/note/delete/70964 Reject -- https://master.php.net/note/reject/70964 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119436) next »