'Anchors start'

def s_text_a(self, tag, attrs):

    self.writedata()
    href = attrs[(XLINKNS, 'href')].split('|')[0]
    if (href[:1] == '#'):
        href = ('#' + self.get_anchor(href[1:]))
    self.opentag('a', {'href': href})
    self.purgedata()
