how can i do this:
[ahoward@localhost xhtml-0.0.0]$ irb -r rexml/document
irb(main):001:0> REXML::Text::new("",
respect_whitespace=false, parent=nil, raw=false).to_s
=> “<foobar>”
irb(main):002:0> REXML::Text::new("",
respect_whitespace=false, parent=nil, raw=nil).to_s
=> “<foobar>”
irb(main):003:0> REXML::Text::new("",
respect_whitespace=false, parent=nil, raw=true).to_s
/usr/local/lib/ruby/1.8/rexml/text.rb:90:in initialize': Illegal character '<' in raw string "<foobar>" (Exception) from (irb):3:in
new’
from (irb):3:in irb_binding' from /usr/local/lib/ruby/1.8/irb/workspace.rb:52:in
irb_binding’
from /usr/local/lib/ruby/1.8/irb/workspace.rb:52
is there no way to subvert the call to allow placing raw strings
containing
any chars into the output?
regards.
-a