Method
link_url
(self: HTML2Text, link: str, title: str = "")
Source from the content-addressed store, hash-verified
| 504 | self.quote = not self.quote |
| 505 | |
| 506 | def link_url(self: HTML2Text, link: str, title: str = "") -> None: |
| 507 | url = urlparse.urljoin(self.baseurl, link) |
| 508 | title = ' "{}"'.format(title) if title.strip() else "" |
| 509 | self.o("]({url}{title})".format(url=escape_md(url), title=title)) |
| 510 | |
| 511 | if tag == "a" and not self.ignore_links: |
| 512 | if start: |
Callers
nothing calls this directly
Tested by
no test coverage detected