PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.4.4
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.4.4
2.4.3 2.4.4 2.4.2 2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 All 60 releases
easy-invoice / vendor / masterminds / html5 / bin / entities.php

entities.php in Easy Invoice – Invoice Generator, PDF Quotes & Payments 2.4.4, at vendor/masterminds/html5/bin/entities.php

27 lines 638 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Fetch the entities.json file and convert to PHP datastructure.
4 */
5
6 // The URL to the official entities JSON file.
7 $ENTITIES_URL = 'http://www.w3.org/TR/2012/CR-html5-20121217/entities.json';
8
9 $payload = file_get_contents($ENTITIES_URL);
10 $json = json_decode($payload);
11
12 $table = array();
13 foreach ($json as $name => $obj) {
14 $sname = substr($name, 1, -1);
15 $table[$sname] = $obj->characters;
16 }
17
18 echo '<?php
19 namespace Masterminds\\HTML5;
20 /** Entity lookup tables. This class is automatically generated. */
21 class Entities {
22 public static $byName = ';
23 var_export($table);
24 echo ';
25 }' . PHP_EOL;
26 //print serialize($table);
27