JSFiddle - React, Tailwind, and code Playground
by bogdan_vq
HTML
<table>
<tr>
<td valign="top">
<script id="tx" language="JavaScript">genUserFriendlyCourseStatus('W')</script>Request</td>
</tr>
</table>
JavaScript
var html = $('#tx').parent().html().split('>');
alert(html[html.length-1]);