note 103578 added to function.htmlspecialchars-decode

From: Date: Wed, 20 Apr 2011 21:35:51 +0000
Subject: note 103578 added to function.htmlspecialchars-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-179031@lists.php.net to get a copy of this message
this function function htmlkarakter($string) { $string = str_replace(array("&lt;", "&gt;", '&amp;', '&#039;', '&quot;','&lt;', '&gt;'), array("<", ">",'&','\'','"','<','>'), htmlspecialchars_decode($string, ENT_NOQUOTES)); return $string; } Before <description>&lt;div class=&quot;google-ad1&quot;&gt; &lt;script type=&#039;text/javascript&#039;&gt; GA_googleFillSlot(&quot;EW_News_300x250&quot;); &lt;/script&gt; &lt;/div&gt; after using the function <div class="google-ad1"> <script type='text/javascript'> GA_googleFillSlot("EW_News_300x250"); </script> ---- Server IP: 160.75.100.7 Probable Submitter: 94.122.56.237 ---- Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars-decode.php Edit -- https://master.php.net/note/edit/103578 Del: integrated -- https://master.php.net/note/delete/103578/integrated Del: useless -- https://master.php.net/note/delete/103578/useless Del: bad code -- https://master.php.net/note/delete/103578/bad+code Del: spam -- https://master.php.net/note/delete/103578/spam Del: non-english -- https://master.php.net/note/delete/103578/non-english Del: in docs -- https://master.php.net/note/delete/103578/in+docs Del: other reasons-- https://master.php.net/note/delete/103578 Reject -- https://master.php.net/note/reject/103578 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179031) next »