bin
7 months ago
src
7 months ago
CREDITS
1 year ago
LICENSE.txt
1 year ago
README.md
1 year ago
RELEASE.md
1 year ago
UPGRADING.md
1 year ago
composer.json
1 year ago
UPGRADING.md
22 lines
| 1 | From 1.x to 2.x |
| 2 | ================= |
| 3 | |
| 4 | - All classes uses `Masterminds` namespace. |
| 5 | - All public static methods has been removed from `HTML5` class and the general API to access the HTML5 functionalities has changed. |
| 6 | |
| 7 | Before: |
| 8 | |
| 9 | $dom = \HTML5::loadHTML('<html>....'); |
| 10 | \HTML5::saveHTML($dom); |
| 11 | |
| 12 | After: |
| 13 | |
| 14 | use Masterminds\HTML5; |
| 15 | |
| 16 | $html5 = new HTML5(); |
| 17 | |
| 18 | $dom = $html5->loadHTML('<html>....'); |
| 19 | echo $html5->saveHTML($dom); |
| 20 | |
| 21 | |
| 22 |