[utlis] add extract_attributes for extracting html tags attributes