Formz

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Hi everyone,
How can I disable html-tags on a messageboard/guestbook?
I don't want users to use stuff like and so on...

Thanx in advanx.

They have: 850 posts

Joined: Jul 1999

You can use a regular expression to replace < and > with < and >

$html = "<tag></tag>";
$html =~s/</&lt;/g;
$html =~s/>/&gt;/g;
'

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.