view.$('a').text() test example Example: jquery get element innertext const copiedText = $('#element').text();