title: R: how to remove \n and <br /> from text data
body: <p>I have a text data like the following:</p>
  
  <pre><code>   hold that\nagainst me. i spend most of my days trying to build cool stuff for\nmy company. &lt;br /&gt;\n&lt;br /&gt;\ni'm an entrepreneur (like everyone else in sf, it seems) and i love\nwhat i do.
  </code></pre>
  
  <p>I used the following command but it has only removed \n and  still remains.</p>
  
  <pre><code>   gsub("\n &lt;br /&gt;", " ", h)
  </code></pre>
  
  <p>and when I tried this command, both of the characters are removed but the "re" in the actual text data is also removed. So, I am wondering what is a proper way to remove both.</p>
  
  <pre><code> gsub("[\n &lt;br /&gt;]", " ", h)
  </code></pre>