Pull merge.
[yaffs-website] / vendor / masterminds / html5 / UPGRADING.md
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