note 82410 added to function.htmlspecialchars

From: Date: Wed, 09 Apr 2008 18:41:02 +0000
Subject: note 82410 added to function.htmlspecialchars
Groups: php.notes 
Request: Send a blank email to php-notes+get-138070@lists.php.net to get a copy of this message
Here is a function that wraps htmlspecialchars and makes it work for xml. function xmlspecialchars($text) { return str_replace(''', ''', htmlspecialchars($text, ENT_QUOTES)); } ---- Server IP: 208.69.120.35 Probable Submitter: 24.153.133.250 ---- Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars.php Edit -- https://master.php.net/note/edit/82410 Del: integrated -- https://master.php.net/note/delete/82410/integrated Del: useless -- https://master.php.net/note/delete/82410/useless Del: bad code -- https://master.php.net/note/delete/82410/bad+code Del: spam -- https://master.php.net/note/delete/82410/spam Del: non-english -- https://master.php.net/note/delete/82410/non-english Del: in docs -- https://master.php.net/note/delete/82410/in+docs Del: other reasons-- https://master.php.net/note/delete/82410 Reject -- https://master.php.net/note/reject/82410 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138070) next »