title: How to render html from a text column field in database?
body: <p>I have an column in database as <strong>welcome_emil</strong> of type <strong>TEXT</strong>.</p>
  
  <p>I have saved the following code content saved in column as :</p>
  
  <pre><code>Thanks for Joining in!     \r\n\r\nYou can loginor refer your friends using your %referral_link%."
  </code></pre>
  
  <p>When i try to render this code into my email that is sent to the user. Complete content goes fine but </p>
  
  <pre><code>  \r\n\r\n
  </code></pre>
  
  <p>this is omitted and all text appear inline.</p>
  
  <p>Here is the code that i use</p>
  
  <pre><code>  &lt;%= p  @company.welcome_email.gsub('%referral_link%',@recipient.referral_link).html_safe %&gt; 
  </code></pre>
  
  <p>Here is the screenshot how it looks like in email</p>
  
  <p><img src="https://i.stack.imgur.com/oTHlq.png" alt="enter image description here"></p>