Added test to make sure that innerText method is escaping HTML
Added a test to make sure the readme.md example works
Added capacity for using a function to determine the new value of an attribute or child
Added tests to catch multi-node selection bug, and a fix for it. In summary the code was treating multiple nodes as one, meaning that .text() was the concatenation of all the text of the matching nodes, rather than the individual values of each one... if that makes sense. Anyway running these new tests against the previous code would show the problem clearly
Fixed multiple selection bug caused by the fact that selections are sometimes arrays and sometimes not. It concerns me a bit that I can't reproduce this in a test case, but this bugfix solved my real-world error. #notsupposedtohappen
Merge pull request #24 from richmarr/regex

Allow values to be manipulated with regex rather than just replaced