<%

  attachment = attribute.split('_file_name').first

  if !@item.send(attribute).blank?
    message = _("Remove {{attribute}}", :attribute => @item.class.human_attribute_name(attribute).downcase)
    label_text << <<-HTML
 <small>#{link_to message, { :action => 'detach', 
                             :id => @item, 
                             :attachment => attachment }, 
                             :confirm => _("Are you sure?")}</small>
    HTML
  end

%>

<li>
  <%= form.label attribute, label_text %>
  <%= form.file_field attachment, options %>
  <%= typus_preview(@item, attribute) %>
</li>

<%

  attachment = attribute.split('_file_name').first

  if !@item.send(attribute).blank?
    message = _("Remove {{attribute}}", :attribute => @item.class.human_attribute_name(attribute).downcase)
    label_text << <<-HTML
 <small>#{link_to message, { :action => 'detach', 
                             :id => @item, 
                             :attachment => attachment }, 
                             :confirm => _("Are you sure?")}</small>
    HTML
  end

%>

<li>
  <%= form.label attribute, raw(label_text) %>
  <%= form.file_field attachment, options %>
  <%= typus_preview(@item, attribute) %>
</li>

Use raw on the label
Use raw on the label
