def get_starttag_string(name, attrs, save_attrs=True):
    """Returns string representation of start tag.

    Args:
        name: Name of tag.
        attrs: Attributes of tag -> ((attr1, value), ...).
        save_attrs: If it is True, attributes of tag will be save.
    """
    tag_content = [name]

    if save_attrs:
        tag_content += ['{0}="{1}"'.format(attr, value) for attr, value in attrs]

    return '<' + ' '.join(tag_content) + '>'