preprocess html