JSFiddle - React, Tailwind, and code Playground
JavaScript
var content = '<p> <meta content="text/html; charset=unicode" http-equiv="Content-Type" /></p><p> <meta content="MSHTML 8.00.6001.18702" name="GENERATOR" /></p><div> <img border="0" src="http://localhost:15978/TestImages/Que_152_0/51099.jpg" /></div><br /><br /><div> write something on the pic shown.</div>';
// insert into a div to parse as HTML
var $content = $('<div />').html(content);
// find all <meta> tags inside <p> and remove them
$content.find('p meta').remove();
// convert contents back to a string
content = $content.html();
alert(content);