jjrjr1
Posts: 942
|
| Posted: 11/07/2008, 5:58 PM |
|
Hi
Here is a method to prevent malicious code being inserted into a field.
There could be other methods but this works.
function FCKSecure($HTML){
$SafeTags="<pre><b><br><a><p><table><td><th><tr><img>
<li><font><strong><i><u><ul><span><div><dt><h1><h2>
<h3><h4><h5><h6><blockquote><basefont><bgsound>
<center><code><quote>";
$SafeHTML=strip_tags($HTML,$SafeTags);
return $SafeHTML;
}
Here is more detailed information on this method
http://ccselite.com/forums_topics_view.php?forum_id=2&forum_topic_id=21
Have Fun
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |