note 98698 added to function.htmlspecialchars

From: Date: Thu, 01 Jul 2010 12:57:41 +0000
Subject: note 98698 added to function.htmlspecialchars
Groups: php.notes 
Request: Send a blank email to php-notes+get-170619@lists.php.net to get a copy of this message
I had problems with spanish special characters. So i think in using htmlspecialchars but my strings also contain HTML. So I used this :) Hope it help function htmlspanishchars($str) { return str_replace(array("&lt;", "&gt;"), array("<", ">"), htmlspecialchars($str, ENT_NOQUOTES, "UTF-8")); } ---- Server IP: 69.147.83.197 Probable Submitter: 201.231.92.182 ---- Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars.php Edit -- https://master.php.net/note/edit/98698 Del: integrated -- https://master.php.net/note/delete/98698/integrated Del: useless -- https://master.php.net/note/delete/98698/useless Del: bad code -- https://master.php.net/note/delete/98698/bad+code Del: spam -- https://master.php.net/note/delete/98698/spam Del: non-english -- https://master.php.net/note/delete/98698/non-english Del: in docs -- https://master.php.net/note/delete/98698/in+docs Del: other reasons-- https://master.php.net/note/delete/98698 Reject -- https://master.php.net/note/reject/98698 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#170619) next »