Mercurial > hg > cmmr2012-drupal-site
annotate vendor/masterminds/html5/UPGRADING.md @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
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 |