Module: FriendlyFormat::HpricotAdapter
- Defined in:
- lib/friendly_format/adapter/hpricot_adapter.rb
Class Method Summary collapse
Class Method Details
.empty?(node) ⇒ Boolean
18 19 20 |
# File 'lib/friendly_format/adapter/hpricot_adapter.rb', line 18 def empty? node node.empty? end |
.parse(html) ⇒ Object
10 11 12 |
# File 'lib/friendly_format/adapter/hpricot_adapter.rb', line 10 def parse html Hpricot.parse(html) end |
.to_xhtml(node) ⇒ Object
14 15 16 |
# File 'lib/friendly_format/adapter/hpricot_adapter.rb', line 14 def to_xhtml node node.to_html end |