comments (not for humans)
"That does not mean, however, that blocking < and > when ouputting user data in javascript isn't necessary", David said.
[...]
I was looking through my log and found a referer entry where somone had searched google with the search term "javascript+validation+to+avoid+SQL+injection". It seems some developers still don't understand that trying to lock up an application on the client side using javascript is impossible. It is like trying to avoid burglaries to your home by locking the doors to the homes of every thief around.
[...]
You may sometimes need to unescape HTML escaped strings in javascript. I found a neat trick to do this using the browser internal escaping.
[...]
For some pages you may want to add special effects to elements on the page. As an example, consider a WYSIWYG web page editor. In a this kind of editor, you may want to hide the editing capabilities of the different page elements, but show them when the user moves selectes the element for editing. An example web page can be found at the bottom of this entry.
[...]
About Erlend
I'm a senior consultant at Bekk Consulting AS. This blog is about software development, with a special focus on security.

Follow me on twitter