I'm using jQuery to replace matched hyperlinks with their link text. That is:
<a href="http://stackoverflow.com">Stack Overflow</a>
becomes
Stack Overflow
I'm trying:
$("table.ms-listviewtable a:nth-child(4)").replaceWith($(this).text())
but get a JavaScript error.
Any ideas why and how to fix it?