summaryrefslogtreecommitdiff
path: root/plugins/af_readability/vendor/masterminds/html5/bin/entities.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-12-13 20:08:43 +0300
committerAndrew Dolgov <[email protected]>2022-12-13 20:08:43 +0300
commit8ea537123d1cef38f25f9fbe92e3a9c0f89de55a (patch)
tree0b40ea733af15c1f33403e42afc8afa14d48b87c /plugins/af_readability/vendor/masterminds/html5/bin/entities.php
parent313f12ae9306fc62bbbfa10310a2feb20aa274c5 (diff)
move af_readability out of master tree
Diffstat (limited to 'plugins/af_readability/vendor/masterminds/html5/bin/entities.php')
-rw-r--r--plugins/af_readability/vendor/masterminds/html5/bin/entities.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/plugins/af_readability/vendor/masterminds/html5/bin/entities.php b/plugins/af_readability/vendor/masterminds/html5/bin/entities.php
deleted file mode 100644
index 56323a341..000000000
--- a/plugins/af_readability/vendor/masterminds/html5/bin/entities.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * Fetch the entities.json file and convert to PHP datastructure.
- */
-
-// The URL to the official entities JSON file.
-$ENTITIES_URL = 'http://www.w3.org/TR/2012/CR-html5-20121217/entities.json';
-
-$payload = file_get_contents($ENTITIES_URL);
-$json = json_decode($payload);
-
-$table = array();
-foreach ($json as $name => $obj) {
- $sname = substr($name, 1, -1);
- $table[$sname] = $obj->characters;
-}
-
-echo '<?php
-namespace Masterminds\\HTML5;
-/** Entity lookup tables. This class is automatically generated. */
-class Entities {
- public static $byName = ';
-var_export($table);
-echo ';
-}' . PHP_EOL;
-//print serialize($table);