#34577 [NEW]: Missing a lot of HTML Entities.
From: mark_meredith at shaw dot ca
Operating system: Mac OS X 10.4.2
PHP version: 5.0.5
PHP Bug Type: Unknown/Other Function
Bug description: Missing a lot of HTML Entities.
Description:
------------
Some special characters, Symbols, and Latin-1 chararacters.
Are
missing from get_html_translation_table
(HTML_ENTITIES,ENT_QUOTES)
The xhtml Special character lsquo and rsquo (left and right
single quote are missing for instance). And a lot of
entities from the W3C provided xhtml-symbol.ent, xhtml-
special.ent, and xhtml-lat1.ent files are missing.
You can download these files from http://www.w3.org/TR/
xhtml1/dtds.html
It also seems strange how all of this was implemented
considering there are three files of entities. There really
should be 3 separate functions for converting these
characters to their entity equivalents as well as one
function that will convert all entities.
Reproduce code:
---------------
print('<pre>'.print_r(get_html_translation_table
(HTML_ENTITIES,ENT_QUOTES),1).'</pre>');
/*:NOTE: then compare to the contents of the entity files located at
http://www.w3.org/TR/
xhtml1/dtds.html*/
Expected result:
----------------
Should have every known entity, and divisions between what
type of entity it is.
Actual result:
--------------
Is missing a lot of entities like ’ from xhtml-
special.ent
--
Edit bug report at http://bugs.php.net/?id=34577&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34577&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34577&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34577&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34577&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34577&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34577&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34577&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34577&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34577&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34577&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34577&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34577&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34577&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34577&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34577&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34577&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34577&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34577&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34577&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34577&r=mysqlcfg
Thread (5 messages)
- mark_meredith at shaw dot ca