#innerHTML, good practice?

2 messages · Page 1 of 1 (latest)

cinder garden
#

innerHTML is tool just like any other - use it where appropriate, there's nothing wrong with it IMHO. You should be protecting against injection attacks ANYTIME you accept user input - assume that ALL users are trying to hack you in this way and be sure to sanitize and protect against this kind of thing - that's just good practice and will serve you well in the "real world"

loud dirge