MCPcopy Create free account
hub / github.com/PageBot/PageBot / title_

Method title_

Lib/pagebot/contexts/htmlcontext/htmlbuilder.py:716–726  ·  view source on GitHub ↗

Write the stripped string s as ... tag. >>> b = HtmlBuilder() >>> b.title_('This is a title') >>> b.getHtml().strip() ' This is a title '

(self, s)

Source from the content-addressed store, hash-verified

714 self._closeTag('title')
715
716 def title_(self, s):
717 """Write the stripped string s as <title>...</title> tag.
718
719 >>> b = HtmlBuilder()
720 >>> b.title_('This is a title')
721 >>> b.getHtml().strip()
722 '<title>This is a title</title>'
723 """
724 self.tabs()
725 self.tabIn()
726 self.write('<title>%s</title>' % s.strip())
727
728 def link(self, **args):
729 """The link tag defines the relationship between two linked documents.

Callers 1

write_headMethod · 0.80

Calls 3

tabInMethod · 0.80
writeMethod · 0.80
tabsMethod · 0.45

Tested by

no test coverage detected