In my NText column, I have some data in between <script type='text/javascript'> </script>
tags.
I want to replace all the data between <script type='text/javascript'> </script>
tag with this data below:
<!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'https://d1.openx.org/ajs.php':'http://d1.openx.org/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=946288&source=_self&target=_top&block=1&blockcampaign=1");
document.write ('&cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
document.write ("&loc=" + escape(window.location));
if (document.referrer) document.write ("&referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>-->
How can I do it this. Please share the solution.
Update: Here's the string
<script src="http://d1.openx.org/ajs.php?zoneid=34288&amp;source=_self&amp;target=_top&amp;block=1&amp;blockcampaign=1&amp;cb=98346855009&amp;charset=unicode&amp;loc=http%3A//www.mysite.com/Admin/AddEditArticle.aspx%3FID%3D623" type="text/javascript"></script>