title: Javascript to replace innerText and not if its an attribute
body: <p>How to use Javascript to selectively replace the word called Rindan in he below text ,
  but not if its in some attribute like img alt=="Rindan"
  I want to replace the word Rindans which is an inner text and not if it is in attribute .</p>
  
  <pre><code>`"&lt;a href="http://edition.cnn.com/video/?hpt=hp_t1#/video/bestoftv/2012/02/28/ac-marie-rindan-family-syria.cnn"&gt;Rindan's family on her legacy&lt;/a&gt; &amp;nbsp;&lt;a href="http://edition.cnn.com/video/?hpt=hp_t1#/video/bestoftv/2012/02/28/ac-marie-Rindan-family-syria.cnn" target=""&gt;&lt;img alt="Rindan's family on her legacy" border="0" class="cnnVideoIcon" height="10" src="http://i.cdn.turner.com/cnn/.e/img/3.0/global/icons/video_icon.gif" width="16" /&gt;&lt;/a&gt;`"
  </code></pre>