added stripHtml function