Name

anchor_end

Synopsis

                        h.anchor_end( )

Called for each </a> end tag. HTMLParser’s implementation of anchor_end emits to the formatter a footnote reference that is an index within s .anchorlist. In other words, by default, HTMLParser asks the formatter to format an <a>/</a> tag pair as the text inside the tag, followed by a footnote reference number that points to the URL in the <a> tag. Of course, it’s up to the formatter to deal with this formatting request.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.