better html and newline removal