Fix maybe it'll remove closed label, like >

This line 'res = res[0..-2]' changes
```html
 <table></table>
```
to
```html
<table></table
```

hope it doesn't break anything :)