Workarounds for some escaping issues

Workarounds for
* https://github.com/janv/rest_in_place/issues/33 ("After R.I.P. submission the updated field is injected into the html without any escaping")
* https://github.com/janv/rest_in_place/issues/34 ("Truncation on editing a string containing a double quote")

Fix for
* https://github.com/janv/rest_in_place/issues/36 ("Doesn't save input fields on tabbing out of input box")

Note: No jasmine tests added for either of these issues