SO-26784126-2

by jwnace

HTML

<a href="http://www.example.com" class="link">Text</a>

JavaScript

alert($("a:contains('Text')")[0].outerHTML);