'Complete'

def htmlHREF(self, urlPrefix='', hrefText=None, hrefTarget=None):

    assert (type(urlPrefix) == StringType), 'urlPrefix    must    be    StringType'
    if (hrefText is None):
        hrefText = self.unparse()
    assert (type(hrefText) == StringType), 'hrefText    must    be    StringType'
    if (hrefTarget is None):
        target = ''
    else:
        assert (type(hrefTarget) == StringType), 'hrefTarget    must    be    StringType'
        target = ('    target="%s"' % hrefTarget)
    return ('<a%s    href="%s%s">%s</a>' % (target, urlPrefix, self.unparse(), hrefText))
