JSFiddle - React, Tailwind, and code Playground

by Shree Khanal

HTML

<div id="status"> Hello,this is my photo http://somephoto.com/image.jpg</div>

JavaScript

var test = "";
var arr = "";
test = $('#status').html();
var text = test.split('photo')[0] + 'photo';
var url = test.split('photo')[1];
var markup = '<br/><img src="' + url +' "/>';
$('#status').html('');
$('#status').html(text + markup);