Hi,
Recently I've been playing around with various HTML encoding of values on the server to avoid things like XSS attacks. Before we go the best route, which is probably checking and sanitizing all input on the server, I've been using the
ESAPI library's encodeForHTML. Everything works fine until I go to load an ext form with the data.
As an example, lets say we have an address stored in a db as "111 East Kilborn St". I encode it on the server and it becomes "111 EAST KILBORN". I send this down as JSON just fine to EXT-JS. It appears fine in our grid, but when we load that piece of data into an ext form field like a textbox it actually shows up as "111 EAST KILBORN".
Any idea why this is happening? Is there a way to get it to appear much like the grid and show up almost as decoded? But without compromising security?