added additional check for html file
still errors with html conversion

mainly conversion between & and &am:p