Mercurial > hg > isophonics-drupal-site
annotate vendor/masterminds/html5/UPGRADING.md @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 From 1.x to 2.x |
Chris@0 | 2 ================= |
Chris@0 | 3 |
Chris@0 | 4 - All classes uses `Masterminds` namespace. |
Chris@0 | 5 - All public static methods has been removed from `HTML5` class and the general API to access the HTML5 functionalities has changed. |
Chris@0 | 6 |
Chris@0 | 7 Before: |
Chris@0 | 8 |
Chris@0 | 9 $dom = \HTML5::loadHTML('<html>....'); |
Chris@0 | 10 \HTML5::saveHTML($dom); |
Chris@0 | 11 |
Chris@0 | 12 After: |
Chris@0 | 13 |
Chris@0 | 14 use Masterminds\HTML5; |
Chris@0 | 15 |
Chris@0 | 16 $html5 = new HTML5(); |
Chris@0 | 17 |
Chris@0 | 18 $dom = $html5->loadHTML('<html>....'); |
Chris@0 | 19 echo $html5->saveHTML($dom); |
Chris@0 | 20 |
Chris@0 | 21 |