pre-HTML parsing