def get_body(post_content):
    """Gets body from post's HTML content."""
    post_body = post_content.find("section", {"id": "postingbody"})
    body = {"body": ""}
    if post_body is not None:
        # Remove elements with null attributes.
        post_body_text = (
            getattr(element, "text", element)
            for element in post_body
            if not getattr(element, "attrs", None)
        )
        # Squelch post_body_text to str.
        body["body"] = str("".join(post_body_text).strip())
    return body