thephpleague / html-to-markdown

Convert HTML to Markdown with PHP
MIT License
1.77k stars 205 forks source link

Paragraphs with empty-ish values are removed #66

Closed marijnvdwerf closed 8 years ago

marijnvdwerf commented 8 years ago

This happens because empty() considers "0" as being empty.

Input

<p>0</p>

Actual:

Expected:

0
andreskrey commented 8 years ago

Might be late to the party but I couldn't reproduce this on version 4.2.1

colinodell commented 8 years ago

Thanks @andreskrey, I can confirm this issue no longer exists.