docs: def create_html_link(urlbase, urlargd, link_label, linkattrd=None,
                       escape_urlargd=True, escape_linkattrd=True,
                       urlhash=None):
      """Creates a W3C compliant link.
      @param urlbase: base url (e.g. config.CFG_SITE_URL/search)
      @param urlargd: dictionary of parameters. (e.g. p={'recid':3, 'of'='hb'})
      @param link_label: text displayed in a browser (has to be already escaped)
      @param linkattrd: dictionary of attributes (e.g. a={'class': 'img'})
      @param escape_urlargd: boolean indicating if the function should escape
                             arguments (e.g. < becomes &lt; or " becomes &quot;)
      @param escape_linkattrd: boolean indicating if the function should escape
                             attributes (e.g. < becomes &lt; or " becomes &quot;)
      @param urlhash: hash string to add at the end of the link
      """
      attributes_separator = ' '
      output = '<a href="' + \
               create_url(urlbase, urlargd, escape_urlargd, urlhash) + '"'
      if linkattrd:
          output += ' '
          if escape_linkattrd:
              attributes = [escape(str(key), quote=True) + '="' +
                            escape(str(linkattrd[key]), quote=True) + '"'
                            for key in linkattrd.keys()]
          else:
              attributes = [str(key) + '="' + str(linkattrd[key]) + '"'
                            for key in linkattrd.keys()]
          output += attributes_separator.join(attributes)
      output = wash_for_utf8(output)
      output += '>' + wash_for_utf8(link_label) + '</a>'
      return output