improved html->text conversion