better html preprocessing / text conversion