macromedia.dreamweaver.appdev
[Top] [All Lists]

Re: Disallowing HTML in textarea / comment form

Subject: Re: Disallowing HTML in textarea / comment form
From: David Powers
Date: Sat, 11 Oct 2008 16:19:02 +0100
Newsgroups: macromedia.dreamweaver.appdev


Dev_Guy07 wrote:
How can i prevent that from happening and id there anyway to save the & call the html code as plain text?

Use either strip_tags() or htmlentities():

http://docs.php.net/manual/en/function.strip-tags.php
http://docs.php.net/manual/en/function.htmlentities.php

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

<Prev in Thread] Current Thread [Next in Thread>