/*Removes html tags*/

function removeHTMLTags(inputStr,maxchar){
	inputStr = inputStr.replace(/&(lt|gt);/g, function (strMatch, p1){
			return (p1 == "lt")? "<" : ">";
		});
		var strTagStrippedText = " "+inputStr.replace(/<\/?[^>]+(>|$)/g, " ");
		strTagStrippedText = strTagStrippedText.substring(0,maxchar);
		return strTagStrippedText;
}

