PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
yatra / vendor / masterminds / html5 / bin / entities.php

entities.php in Yatra – Travel Booking & Tour Operator Software 3.0.16, 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