sstephenson/prototype — pull request #72 by fntzr (2012-10-02 17:55:16+00:00)
Title: Add method for Element.

I added method that returns the text content of element.

For example:

Loremipsum dolore

$('element').content(); // returns text for element and nested elements
//=> Lorem ipsum dolore
$('element').content(true); // returns text only for element without nested elements.
//=> Lorem dolore