class Slaw::Grammars::Inlines::InlineItem

Public Instance Methods

to_xml(b, idprefix) click to toggle source
# File lib/slaw/grammars/inlines_nodes.rb, line 39
def to_xml(b, idprefix)
  if text_value.start_with? '\\'
    # handle escaped characters: \a -> a
    b.text(text_value[1..])
  else
    b.text(text_value)
  end
end