jQuery: replace() dans le code html()

Comment puis-je remplacer le html pièces avec 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);

Je suppose que html() ne fonctionne pas le même que text() ?

Test: http://jsfiddle.net/Hmhrd/

OriginalL'auteur Martin | 2014-04-27