Fixed html parsing

fixed the html content and attribute parsing