title: Remove from String (from Array) in Javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2533807/remove-a-word-from-a-string">Remove a word from a string</a>  </p>
  </blockquote>
  
  
  
  <p>I have a simple string <code>var mystr = "Lorem ipsum dolor sit amet, consectetur adipiscing elit"</code>, and I have an array <code>var lipsums = new Array("dolor","consectetur","elit");</code> Now, I want a simple function which will remove any same word in the string.</p>
  
  <p>So, in the above example, it should remove the words "dolor", "consectetur", and "elit" and my string <code>mystr</code> should be <code>"Lorem ipsum sit amet, adipiscing"</code></p>
  
  <p>This script should be in Javascript (no jQuery). Any help would be appreciated.</p>