How can I replace html parts with replace()
?
<div>
<a href="http://www.google.com">google.com</a>
</div>
JS:
var e = $("div"),
fix = e.html().replace("google.com", "duckduckgo.com");
e.html(fix);
I guess html() is not working the same as text()
?