<span class="txt">a</span>
const a = { desc: 'tag', attr: 'href' } ($('.txt').text() == a) ? true : false