def strip_anchors(html)
      Nokogiri::HTML::DocumentFragment.parse(html, 'UTF-8').children.collect{|child|
        if child.name == "text"
          child.inner_text
        elsif child.name != 'a' || !child.attributes.detect{|atr| atr[0] == 'name'}
          child.to_s
        end
      }.join
    end
def strip_anchors(html)
      Nokogiri::HTML::DocumentFragment.parse(html, 'UTF-8').children.collect{|child|
        if child.name == "text"
          child.inner_text
        elsif child.name != 'a' || !child.attributes.detect{|atr| atr[0] == 'name'}
          child.to_s
        end
      }.join
    end
remove <a name='x'></a> from html, but leaves all other tags in place.