I can't replace text inside Div or Containers. I just want to replace the text but it doesn't work for me. I've tried several ways but it still doesn't work.
I just want to replace the "-" with empty "". But it should just be the text without overriding the tag classes.
<div class="reemplazo-guion">
<div class="kt-btn-wrap kt-btn-wrap-0">
<a class="kt-button" href="#" style="border-radius:10px;border-width:1px" >
<span class="kt-btn-inner-text">Accede Ahora al Método <strong><em>G-e-n-g-h-i-s K-h-a-n</em></strong></span>
</a>
</div>
</div>
jQuery(document).ready(function(){
jQuery('.reemplazo-guion').contents().filter(function() {
return this.nodeType == 3;
}).each(function(){
this.textContent = this.textContent.replace('-','');
});
});