note 118048 added to domdocument.createentityreference

From: Date: Thu, 24 Sep 2015 19:48:26 +0000
Subject: note 118048 added to domdocument.createentityreference
Groups: php.notes 
Request: Send a blank email to php-notes+get-203847@lists.php.net to get a copy of this message
It appears that this does not work with numbered entities, only named entities. $nbspace = $dom->createEntityReference('nbsp'); works $nbspace = $dom->createEntityReference('#160'); does not. This makes this function rather useless when generating an XSL unless you modify the XSL doctype to include the named entity for the character you want. ---- Server IP: 72.52.91.14 Probable Submitter: 98.207.120.245 ---- Manual Page -- http://php.net/manual/en/domdocument.createentityreference.php Edit -- https://master.php.net/note/edit/118048 Del: integrated -- https://master.php.net/note/delete/118048/integrated Del: useless -- https://master.php.net/note/delete/118048/useless Del: bad code -- https://master.php.net/note/delete/118048/bad+code Del: spam -- https://master.php.net/note/delete/118048/spam Del: non-english -- https://master.php.net/note/delete/118048/non-english Del: in docs -- https://master.php.net/note/delete/118048/in+docs Del: other reasons-- https://master.php.net/note/delete/118048 Reject -- https://master.php.net/note/reject/118048 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#203847) next »