docs: def title_from_content(content):
      """
      Try and extract the first sentence from a block of test to use as a title.
      """
      for end in (". ", "?", "!", "<br />", "\n", "</p>"):
          if end in content:
              content = content.split(end)[0] + end
              break
      return strip_tags(content)