PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
dlerium
Forum Newbie
Posts: 1 Joined: Fri May 30, 2003 11:28 pm
Post
by dlerium » Fri May 30, 2003 11:28 pm
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?
phice
Moderator
Posts: 1416 Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:
Post
by phice » Fri May 30, 2003 11:38 pm
twigletmac
Her Royal Site Adminness
Posts: 5371 Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK
Post
by twigletmac » Sat May 31, 2003 3:48 am
m3mn0n
PHP Evangelist
Posts: 3548 Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada
Post
by m3mn0n » Sat May 31, 2003 5:47 am
or
eregi_replace() any
< &
> a user submits with either
[ &
] or
{ &
} .
McGruff
DevNet Master
Posts: 2893 Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland
Post
by McGruff » Sat May 31, 2003 9:26 pm
htmlspecialchars() ?
phice
Moderator
Posts: 1416 Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:
Post
by phice » Sat Jun 21, 2003 2:03 pm
header("Content-Type: text");