JSFiddle - React, Tailwind, and code Playground
HTML
<a href="/season/">mango</a>
<a href="/season/">cherry</a>
<textarea id="test"></textarea>
JavaScript
$('a').each(function(){
var copiedTitle = $(this).html();
var previous = $('#test').html();
var newText = previous +"\n"+ copiedTitle;
$('#test').html(newText);
});