JSFiddle - React, Tailwind, and code Playground
by David Thomas
HTML
<span class="fillmeout">This is a test of the <span>NOUN</span> Broadcast System.</span>
<ol id="output">
<li></li>
<li></li>
</ol>
JavaScript
$('.fillmeout span').each(
function(){
var prefix = this.previousSibling.nodeValue,
suffix = this.nextSibling.nodeValue,
output = $('#output');
output.find('li:first').text(prefix);
output.find('li:eq(1)').text(suffix);
});