def link(url, linkText='{url}'):
  """Returns a link HTML string.

  The string is an &lt;a&gt; tag that links to the given url.
  If linkText is not provided, the link text will be the url.
  """

  template = '<a href={url}>' + linkText + '</a>'
  return template.format(url=url)