def generate_html style=:default
      html = ""

      html << <<-HTML
        <a href='#{self.url.to_s.html_safe}' target='#{self.open_style_key}' style='#{self.style.to_s.html_safe}' title='#{self.title.to_s.html_safe}'>#{self.text.to_s.html_safe}</a>
      HTML

      html
    end
def generate_html style=:default
      html = ""

      html << <<-HTML
        <a href='#{self.url.to_s.html_safe}' target='#{self.open_style_key}' style='#{self.style.to_s.html_safe}' title='#{self.title.to_s.html_safe}'>#{self.text.to_s.html_safe}</a>
      HTML

      html
    end
输出