value=( val )
public
Sets the contents of this text node. This expects the text to be
unnormalized. It returns self.
e = Element.new( "a" )
e.add_text( "foo" )
e[0].value = "bar"
e[0].value = "<a>"
Show source
def value=( val )
@string = val.gsub( /\r\n?/, "\n" )
@unnormalized = nil
@normalized = nil
@raw = false
end