title: How to replace string from a particular index to end
body: <p>I'm trying to replace a string from a particular index to end</p>
  
  <p>I have different string inputs with a link at the end I want to delete that link</p>
  
  <p>for example I have :</p>
  
  <blockquote>
    <p>Hello world ! this is my website link <a href="http://www.lo.com" rel="nofollow">http://www.lo.com</a></p>
  </blockquote>
  
  <p>I want to delete the link to get only :</p>
  
  <blockquote>
    <p>Hello world ! this is my website link</p>
  </blockquote>
  
  <p>Code :</p>
  
  <pre><code>Var message = "Hello world ! this is my website link http://www.lo.com";
  </code></pre>
  
  <p>How to do that in Javascript ?</p>