Escape HTML special characters in GWT-RPC responses like GSON does.

Also, don't escape NUL as "\0".  If a NUL character is followed by an
octal digit in the original string, then the resulting string will be
misparsed.  E.g., "\07" will be parsed as a single character string
instead of a two character string.

Change-Id: Ifb82cb638d2cc356925a4ba84bb5f6662ca818ac
Review-Link: https://gwt-review.googlesource.com/#/c/1360/

Review by: skybrian@google.com

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@11403 8db76d5a-ed1c-0410-87a9-c151d255dfc7
5 files changed