simplified HTML parsing