def _get_tag_text(tag):
    """
    If a <p> tag contains text, return it, otherwise return an empty string
    (rather than None).
    """
    if tag.text is not None:
        return tag.text
    return ''