How to evoid HTML from runing javascript

Discussion in 'HTML & Website Design' started by nebhotep, Apr 16, 2008.

  1. #1
    Hi!

    I have a website where users can post comments (like usual blog comments). The problem is that if a user post in a comment a javascript or any other code, the server runs the post as if it was from the content of the site.
    I tried to put comments between <pre> tags, but still not ok.

    Any ideea?
     
    nebhotep, Apr 16, 2008 IP