Page 1 of 1
how to prevent user entered html tag?
Posted: Mon Aug 16, 2004 2:36 am
by kevin7
how to prevent user entered html tag?
by checking for "<" and ">"?
how can i do that, can u show me an example?
thank you!
Posted: Mon Aug 16, 2004 3:19 am
by feyd
[php_man]htmlentities[/php_man]/[php_man]strip_tags[/php_man]
Posted: Mon Aug 16, 2004 2:14 pm
by lostboy
also look at
regex or
instr, to check for those values values, other solutions include replacing any < or > tags with something else like [ ] or the ascii equivalents...
Posted: Mon Aug 16, 2004 2:23 pm
by m3mn0n
For more information about strings and PHP check out:
http://www.php.net/strings