def create_html_link(urlbase, urlargd, link_label, linkattrd=None,<EOL>escape_urlargd=True, escape_linkattrd=True,<EOL>urlhash=None):
attributes_separator = '<STR_LIT:U+0020>'<EOL>output = '<STR_LIT>' +create_url(urlbase, urlargd, escape_urlargd, urlhash) + '<STR_LIT:">'<EOL>if linkattrd:<EOL><INDENT>output += '<STR_LIT:U+0020>'<EOL>if escape_linkattrd:<EOL><INDENT>attributes = [escape(str(key), quote=True) + '<STR_LIT>' +<EOL>escape(str(linkattrd[key]), quote=True) + '<STR_LIT:">'<EOL>for key in linkattrd.keys()]<EOL><DEDENT>else:<EOL><INDENT>attributes = [str(key) + '<STR_LIT>' + str(linkattrd[key]) + '<STR_LIT:">'<EOL>for key in linkattrd.keys()]<EOL><DEDENT>output += attributes_separator.join(attributes)<EOL><DEDENT>output = wash_for_utf8(output)<EOL>output += '<STR_LIT:>>' + wash_for_utf8(link_label) + '<STR_LIT>'<EOL>return output<EOL>
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