JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/ui-lightness/jquery-ui.css">
<span class="name_cat">It's a "test" </span> (5)
JavaScript
var span_name = $("span").html().replace(/"/g, """);
form = '<form action="/admin/controllers/edit_cat.php" method="post" >'+
'<input type="text" name="name_cat" value="'+span_name+'" />'+
'<input type="submit" value="save" />'+
'</form>';
$(form).appendTo(document.body);