Replace checks for html mode with htmlmixed mode

@njx