JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
<button>Click me</button>
JavaScript
$('button').click(function () {
var something = "http://www.dentalo.se/bokning/ea297dbd-cdc1-40c4-8a01-cbd7e4854fb1"
$('div').html(something.replace('http://www.dentalo.se/bokning/', ''));
});