Class: Wikitxt::LinkNode

Inherits:
BaseNode show all
Defined in:
lib/wikitxt/node.rb

Instance Attribute Summary

Attributes inherited from BaseNode

#attrs, #children

Instance Method Summary collapse

Methods inherited from BaseNode

#initialize

Constructor Details

This class inherits a constructor from Wikitxt::BaseNode

Instance Method Details

#to_htmlObject



47
48
49
# File 'lib/wikitxt/node.rb', line 47

def to_html
  " <a href=\"#{attrs[:url]}\">#{attrs[:title] ? CGI.escapeHTML(attrs[:title]) : attrs[:url]}</a> "
end