strip HTML tags and whitespace before validating

fixes #52