note 58863 deleted from function.htmlentities by cmb

From: Date: Sun, 01 Dec 2019 08:36:58 +0000
Subject: note 58863 deleted from function.htmlentities by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213311@lists.php.net to get a copy of this message
Note Submitter: edo at edwaa dot com ---- A version of the xml entities function below. This one replaces the "prime" character (′) with which I had difficulties. <?php // XML Entity Mandatory Escape Characters function xmlentities($string) { return str_replace ( array ( '&', '"', "'", '<', '>', '�' ), array ( '&amp;' , '&quot;', '&apos;' , '&lt;' , '&gt;', '&apos;' ), $string ); } ?>

« previous php.notes (#213311) next »