Enabling HTML tags in this JS Code
<p>I use this code for creating Summary of the Blog Posts at my blog Gadgetcage.com, In this JS code HTML tags are disabled by the author, I would like to remove that disabling HTML tag function in this Code. Please help me!!</p>

<pre><code>function removeHtmlTag(strx,chop){ 
    if(strx.indexOf("&lt;")!=-1)
    {
     var s = strx.split("&lt;"); 
     for(var i=0;i&lt;s.length;i++){ 
      if(s[i].indexOf("&gt;")!=-1){ 
       s[i] = s[i].substring(s[i].indexOf("&gt;")+1,s[i].length); 
      } 
     } 
     strx =  s.join(""); 
    }
    chop = (chop &lt; strx.length-1) ? chop : strx.length-2; 
    while(strx.charAt(chop-1)!=' ' &amp;&amp; strx.indexOf(' ',chop)!=-1) chop++; 
    strx = strx.substring(0,chop-1); 
    return strx+'...'; 
}

function createSummaryAndThumb(pID){
    var div = document.getElementById(pID);
    var imgtag = "";
    var img = div.getElementsByTagName("img");
    var summ = summary_noimg;
    if(img.length&gt;=1) { 
     imgtag = '&lt;span style="float:left; padding:0px 10px 5px 0px;"&gt;&lt;img src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/&gt;&lt;/span&gt;';
     summ = summary_img;
    }

    var summary = imgtag + '&lt;div&gt;' + removeHtmlTag(div.innerHTML,summ) + '&lt;/div&gt;';
    div.innerHTML = summary;
}
</code></pre>
