-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.php
More file actions
70 lines (64 loc) · 1.26 KB
/
test.php
File metadata and controls
70 lines (64 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
require __DIR__ . '/vendor/autoload.php';
use Lucinda\Console\Wrapper;
ini_set("display_errors",1);
$html = '
<div>Hey!</div>
<div>hello, <u>Lucinda</u></div>
<table>
<thead>
<tr>
<td style="background-color: red">Name</td>
<td>Value</td>
</tr>
</thead>
<tbody>
<tr>
<td style="color: green">qqq</td>
<td>sss</td>
</tr>
<tr>
<td>ddd</td>
<td>fff</td>
</tr>
</tbody>
</table>
<ol>
<caption style="color: blue">Is <b>rrr</b> ttt?</caption>
<li>
<ul>
<caption>xxx</caption>
<li style="background-color: blue">aaa</li>
<li>bbb</li>
</ul>
</li>
<li>No</li>
<li>
<ol>
<caption>yyy</caption>
<li>ccc</li>
<li>ddd <u>ooo</u></li>
</ol>
</li>
</ol>
<table>
<thead>
<tr>
<td>Name</td>
<td>Value</td>
</tr>
</thead>
<tbody>
<tr>
<td>xxx</td>
<td>www</td>
</tr>
<tr>
<td>yyy</td>
<td>uuu</td>
</tr>
</tbody>
</table>
';
$wrapper = new Wrapper($html);
echo $wrapper->getBody();