<div class="link_block">
    <img class="icon" src="{{ link.icon }}"/>
    <a class="link_url" href="{{ link.link }}">
        {{ link.title }}
    </a>
    {% if user.is_authenticated %}
        <form action="" method="post" class="link-tag">
            {% csrf_token %}
            <input type="hidden" name="link_tag" value="{{ link.id }}"/>
            <input type="text" name="tag_text" class="tag_text" title="Tag" placeholder="#tag"/>
            <input type="submit"/>
        </form>
    {% endif %}
    <div class="tags">
        {% for tag in link.tags.all %}
            <a href="{{ tag.slug }}" class="quick-link {% if tag.slug in selected_tags %}active{% endif %}">{{ tag.text }}</a>
        {% endfor %}
    </div>
</div>

<div class="link_block">
    <img class="icon" src="{{ link.icon }}"/>
    <a class="link_url" href="{{ link.link }}">
        {{ link.title }}
    </a>
    {% if user.is_authenticated %}
        <form action="" method="post" class="link-tag">
            {% csrf_token %}
            <input type="hidden" name="link_tag" value="{{ link.id }}"/>
            <input type="text" name="tag_text" class="tag_text" title="Tag" placeholder="#tag"/>
            <input type="submit"/>
        </form>
    {% endif %}
    <div class="tags">
        {% for tag in link.tags.all|slice:":7" %}
            <a href="/{{ tag.slug }}"
               class="quick-link {% if tag.slug in selected_tags %}active{% endif %}">{{ tag.text.split|join:"&nbsp;" }}</a>
        {% endfor %}
    </div>
</div>

Trim tags and use non-breaking spaces
Trim tags and use non-breaking spaces
