Eduardo Figarola wrote in post #1111343:
> Hi, the examples will be atached to the answer, I hope you can get a
> better idea of this methods.
>
> Regards,
> Eduardo Figarola.
can anyone tell me what the wrong I did here?
node = Nokogiri::XML::Node.new( <p>This text contains
<sup>superscript</sup> text.</p>, doc) # !> possibly useless use of a
variable in void context
node.description # =>
# ~> -:77: syntax error, unexpected '<', expecting ')'
# ~> ...de = Nokogiri::XML::Node.new( <p>This text contains <sup>sup...
# ~> ... ^
# ~> -:77: syntax error, unexpected tIDENTIFIER, expecting keyword_do or
'{' or '('
# ~> ...ri::XML::Node.new( <p>This text contains <sup>superscript</s...
# ~> ... ^
# ~> -:77: unknown regexp option - p
# ~> -:77: syntax error, unexpected ','
# ~> ...up>superscript</sup> text.</p>, doc)
# ~> ... ^