Very cool. This might be more readable if you do this:

```js
var body = encodeURIComponent($scope.getPreview());
```