def has_text(p):
    return '' != etree.tostring(p, encoding=unicode, method='text').strip()
It is possible for a ``p`` tag in document.xml to not have any content. If
dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py/has_text