JSFiddle - React, Tailwind, and code Playground

by nosfan1019

HTML

<p>[Chris], [Bob], and [Mary] are going to the show</p>
<div></div>

JavaScript

$(document).ready(function() {
    _text = $('p').html();
    _text = _text.replace('[','<a href="#">').replace(']','</a>');
    
    $('div').html(_text);
    
    
});