jorgemanrubia / truncato

A tool for truncating HTML strings efficiently
MIT License
59 stars 17 forks source link

<br> inside a table breaks html #5

Closed CarmelK closed 11 years ago

CarmelK commented 11 years ago

breaks html: table tr td br /td /tr /table doesn't break html: table tr td br/ /td /tr /table

sorry for the weird table description, can't add html tags...

jorgemanrubia commented 11 years ago

Hi @CarmelK,

Thanks for reporting this issue. I will try to clear the pending issues this weekend. I am not sure about the root reason behind this one, the library doesn't make any kind of semantic validation on the truncated html but I will try to have it fixed too.

Also, you can paste code using 4 spaces to indent it or with this syntax:

```html
<p>This is some HTML</p>

It will be rendered as

``` html
<p>This is some HTML</p>

You can check this link on the markdown supported by github.

CarmelK commented 11 years ago

thanks