Flowdock
to_s() public

Returns the string value of this text node. This string is always escaped, meaning that it is a valid XML text node string, and all entities that can be escaped, have been inserted. This method respects the entity filter set in the constructor.

# Assume that the entity "s" is defined to be "sean", and that the 
# entity "r" is defined to be "russell"
t = Text.new( "< & sean russell", false, nil, false, ['s'] ) 
t.to_s   #-> "< & &s; russell"
t = Text.new( "< & &s; russell", false, nil, false ) 
t.to_s   #-> "< & &s; russell"
u = Text.new( "sean russell", false, nil, true )
u.to_s   #-> "sean russell"
Show source
Register or log in to add new notes.