def _get_data_for_html_display(obj):
    """Returns the data need to display the object in HTML.
    """
    return {'jstree_data': obj.to_jstree_dict(), 'previous': obj.
        get_previous_js_selectors(), 'html': obj.to_html(), 'elt_id': ':'.
        join(obj.prefixes)}
