JSFiddle - React, Tailwind, and code Playground

HTML

<p>The cow jumped over the {moon} and {sun}.</p>

JavaScript

window.addEvent('domready', function()
{
    $$('P').each(function(p)
    {
        p.set('html', p.get('text').replace(/{([^\}]*)}/g,"<b>$1</b>"));
    });
});