Constructor FIXME: This documentation sucks. @param arg if a String, the
content is set to the String. If a Text, the object
is shallowly cloned. If a Source, the source is
parsed for text content up to the next element. If a Parent, the parent of this object is set to the
argument. If true or false, will be used as the value for the 'raw'
setting. @param respect_whitespace (boolean, optional) if true, whitespace
is respected @param parent (Parent, optional) if
this is a Parent object, the parent will be set
to this. If this is true or false, the value will be used as the 'raw'
setting. @param pattern INTERNAL USE ONLY @param raw INTERNAL USE ONLY
Writes out text, substituting special characters beforehand. @param out A
String, IO, or any other object supporting <<( String ) @param input
the text to substitute and the write out
z=utf8.unpack("U*") ascOut="" z.each{|r|
if r < 0x100
ascOut.concat(r.chr)
else
ascOut.concat(sprintf("&#x%x;", r))
end
} puts ascOut