Page 1 of 1
Disabling HTML
Posted: Fri May 30, 2003 11:28 pm
by dlerium
I have this commenting system where u enter ur name and a bunch of text, and it posts on the site.
However, how would you disable HTML tags from being used?
Posted: Fri May 30, 2003 11:38 pm
by phice
Posted: Sat May 31, 2003 3:48 am
by twigletmac
Posted: Sat May 31, 2003 5:47 am
by m3mn0n
or
eregi_replace()any
< &
> a user submits with either
[ &
] or
{ &
}.
Posted: Sat May 31, 2003 9:26 pm
by McGruff
htmlspecialchars() ?
Posted: Sat Jun 21, 2003 2:03 pm
by phice
header("Content-Type: text");