This is a specialized XMLElement to represent a simple text.
# File lib/taskjuggler/XMLElement.rb, line 159 def initialize(text) super(nil, {}) raise 'Text may not be nil' unless text @text = text end
# File lib/taskjuggler/XMLElement.rb, line 165 def to_s(indent) out = '' @text.each_utf8_char do |c| case c when '<' out << '<' when '>' out << '>' when '&' out << '&' else out << c end end out end