Added stripHTMLComments function