Skip to content

Commit 67c97a5

Browse files
committed
readme updates
1 parent e0d4692 commit 67c97a5

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

README.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,38 @@ This isn't XHP, but it does provide a minimum-bullshit method of generating HTML
1111
use function MicroHTML\{HTML,SECTION,H1,P,DIV};
1212

1313
$page = HTML(
14-
SECTION(["id"=>"news"],
15-
H1("My title"),
16-
P("Here's some content")
17-
)
14+
SECTION(["id"=>"news"],
15+
H1("My title"),
16+
P("Here's some content")
17+
)
1818
);
1919

2020
$page->appendChild(
21-
SECTION(["id"=>"comments"],
22-
DIV("Oh noes: <script>alert('a haxxor is attacking us');</script>")
23-
)
21+
SECTION(["id"=>"comments"],
22+
DIV("Oh noes: <script>alert('a haxxor is attacking us');</script>")
23+
)
2424
);
2525

2626
print($page);
2727
```
2828

2929
```html
3030
<html>
31-
<section id='news'>
32-
<h1>My title</h1>
33-
<p>Here&#039;s some content</p>
34-
</section>
35-
<section id='comments'>
36-
<div>Oh noes: &lt;script&gt;alert(&#039;a haxxor is attacking us&#039;);&lt;/script&gt;</div>
37-
</section>
31+
<section id='news'>
32+
<h1>My title</h1>
33+
<p>Here&#039;s some content</p>
34+
</section>
35+
<section id='comments'>
36+
<div>Oh noes: &lt;script&gt;alert(&#039;a haxxor is attacking us&#039;);&lt;/script&gt;</div>
37+
</section>
3838
</html>
3939
```
4040

4141
Testing
4242
-------
4343
```
4444
composer install
45-
./vendor/bin/php-cs-fixer fix
46-
./vendor/bin/phpunit tests
47-
./vendor/bin/phpstan analyse src tests --level 5
45+
composer check
4846
```
4947

5048
Release

0 commit comments

Comments
 (0)