don't want html tags in my forum

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
Hi...

I've built a forum/guestbook thing for a website. it's verry basic. it simply writes text into a database and then shows it on a new page. the problem is that if someone writes a html tag such as a <img src...> the image will show... I don't want that...
can someone help me with this?

thanx.
 
why did you post the same question 2X.... its annoying to see someone do that... anyways i replied here

http://www.php-forum.com/p/viewtopic.php?t=2197&highlight=
 
another option is to use htmlspecialchars().

this will turn all chars that html useses into the equivalent html character.
 
Back
Top