Extract HTML from a stream using CSS selectors