title: How to escape HTML tags in errors in simple_form
body: <p>I'm using Rails 3.2.22 and simple_form 2.1.3</p>
  
  <p>Some of our fields have duplicate checking and the error includes a link to the duplicated record (so the user can check if it's just the name that's duplicated, or if they don't need to create the record).</p>
  
  <p>However, we've recently switched from a customised form builder to Simple Form, and now these error messages are escaped, displaying the escaped error.</p>
  
  <p>I reproduced this issue in <a href="https://github.com/AJFaraday/simple_form_issue_app" rel="nofollow noreferrer">a minimal app</a>:</p>
  
  <p>In the Doohickey model:</p>
  
  <pre><code>  validate :unique_name_validation
    def unique_name_validation
      other_doohickey = Doohickey.find_by_name(name)
      if other_doohickey
        errors.add(
          :name,
          "This name is already taken by &lt;a href='/doohickey/#{other_doohickey.id}'&gt;#{other_doohickey.name}&lt;/a&gt;"
        )
      end
    end
  </code></pre>
  
  <p>In the UI:</p>
  
  <pre><code>&lt;%= simple_form_for @doohickey do |form| %&gt;
    &lt;%= form.input :name %&gt;
    &lt;%= form.button :submit %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>The UI shows the HTML on the page itself...</p>
  
  <p><a href="https://i.stack.imgur.com/XdOhu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XdOhu.png" alt="enter image description here"></a></p>
  
  <p>There's also some configuration in /config/initializers.rb, but I haven't found a way there to turn off this escaping.</p>
  
  <p>How can I display links from errors using Simple Form?</p>