make html parser support any type of object