JSFiddle - React, Tailwind, and code Playground

by SpaceDog

HTML

<p>Nuno</p>
<p>Eimes</p>

JavaScript

var name=$(this).text();
$( "p" ).each(function() {
  old = $(this).html();
  $(this).html('<a href="id/'+ old +'">'+old+'</a>');
});