Add hooks for HTML parsing