Module: Rusty::Helpers::Text

Defined in:
lib/rusty/helpers.rb

Overview

Some Text helpers.

Instance Method Summary collapse

Instance Method Details

#text(node) ⇒ Object

Returns a cleaned version of a node’s text.



37
38
39
# File 'lib/rusty/helpers.rb', line 37

def text(node)
  node.text.gsub(/\u200e/, "").strip
end