one more way to do things using regular expressions: put the replaceText(myText,"</?[A-Za-z]+>","") into myText will simply replace all tags with empty string. Where myText is the text where replacements have to be made. </?[A-Za-z]+> is a regular expression matching most html tags and "" is empty replacement string. Viktoras