JSFiddle - React, Tailwind, and code Playground
HTML
<a href="http://google.com">We love potatoes</a>
<a href="http://google.com">We love tomatos</a>
JavaScript
$("a:contains('We love potatoes')").attr('target', '_blank');
<a href="http://google.com">We love potatoes</a>
<a href="http://google.com">We love tomatos</a>
$("a:contains('We love potatoes')").attr('target', '_blank');