JSFiddle - React, Tailwind, and code Playground

HTML

<div style="cursor: text">bfbaelf</div>hzejlfzef<div style="cursor: text"> grrr</div>finally

JavaScript

$("div[style='cursor: text']").unwrap().append("<br>");