def get_entry_content(entry):
    """Select the best content from an entry"""

    candidates = entry.get('content', [])
    if 'summary_detail' in entry:
        candidates.append(entry.summary_detail)
    for candidate in candidates:
        if hasattr(candidate, 'type'): # speedparser doesn't set this
            if 'html' in candidate.type:
                return candidate.value
    if candidates:
        try:
            return candidates[0].value
        except AttributeError: # speedparser does this differently
            return candidates[0]['value']
    return ''