Add an interception function to `htmlparser2`.

See #182.