html parser based on rules