parses html response