I'd like to change some text that is between those tags :
<div id=thing>
<a href=link></a>texttochangehere<a href=link2></a>
</div>
But without changing the links. I tried replacing only the part I want with innerHTML and substring, but it seems to unlink the tags that another script uses.
textContentvs.innerHTML. See alsoinnerText.