Fix a bug when stripping the HTML tags