Mercurial > hg > cmmr2012-drupal-site
comparison vendor/masterminds/html5/example.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
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')); |