Fixed htmlParse scope