How do you prevent default script attacks?

What steps should be taken to make websites secure against default script attacks?

Read more: How do you prevent default script attacks?

Story added 8. May 2013, content source with full text you can find at link above.