comparison vendor/masterminds/html5/example.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
1 <?php 1 <?php
2 2
3 require "vendor/autoload.php"; 3 require 'vendor/autoload.php';
4 use Masterminds\HTML5; 4 use Masterminds\HTML5;
5
6 5
7 $html = <<< 'HERE' 6 $html = <<< 'HERE'
8 <html> 7 <html>
9 <head> 8 <head>
10 <title>TEST</title> 9 <title>TEST</title>
26 HERE; 25 HERE;
27 26
28 $html5 = new HTML5(); 27 $html5 = new HTML5();
29 $dom = $html5->loadHTML($html); 28 $dom = $html5->loadHTML($html);
30 29
31 print "Converting to HTML 5\n"; 30 echo "Converting to HTML 5\n";
32 31
33 $html5->save($dom, fopen("php://stdin", 'w')); 32 $html5->save($dom, fopen('php://stdin', 'w'));