cowboy/jquery-replacetext — pull request #4 by WalrusCow (2013-11-13 20:24:16+00:00)
Title: Escape HTML from nodeValue

If there was existing escaped HTML, this plugin will un-escape it, causing issues. Changed it to escape the nodeValue it originally gets.

Example:
In your version, replacing on the node
```html

Hello <script>alert('hi');</script>

```
with regular expression `/Hello/` substituting for `'World'` will cause an alert.

This fix addresses that.

I also took out trailing whitespace that I found.

Note that I did not update the minified version.