Module: Rbexy::Nodes::Util
- Defined in:
- lib/rbexy/nodes.rb
Class Method Summary collapse
Class Method Details
.safe_string(str) ⇒ Object
4 5 6 |
# File 'lib/rbexy/nodes.rb', line 4 def self.safe_string(str) str.gsub('"', '\\"') end |
.safe_tag_name(name) ⇒ Object
8 9 10 |
# File 'lib/rbexy/nodes.rb', line 8 def self.safe_tag_name(name) name.gsub(".", "__") end |