JSFiddle - React, Tailwind, and code Playground

JavaScript

var value ="This is some text . http://localhost/wordpress/ Some text after ";
var source= "http://localhost/wordpress/";
 var dest = "http://localhost/wordpress/?demo_mobile_site";
alert(value);
 value= value.replace(source,dest);
alert(value);