prepared code for different html parser