summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/entities.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/entities.php b/bin/entities.php
index ee8b7b6..39f2b45 100644
--- a/bin/entities.php
+++ b/bin/entities.php
@@ -16,7 +16,11 @@ foreach ($json as $name => $obj) {
}
print '<?php
-$entities = ';
+namespace HTML5;
+/** Entity lookup tables. This class is automatically generated. */
+class Entities {
+ public static $byName = ';
var_export($table);
-print ';';
+print ';
+}' . PHP_EOL;
//print serialize($table);