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")

Note: No jasmine tests added for either of these issues