JSFiddle - React, Tailwind, and code Playground

HTML

<textarea>Was: £469.00 Save £129.00 this month £340.00 Buy Now</textarea>

<h1>OUTPUT</h1>
<div id="output"><pre></pre></div>

CSS

textarea {
    width: 95%;
    height: 90px;
}

#

JavaScript

$("#output>pre").html($("textarea").val());

var a = $("textarea").val(),
    b = a.split('!').join("!\n	"),
    c = b.split('Save').join("Save \n");

$("textarea").keyup(function() {
    $("#output>pre").html(c);
});