![]() |
how to filter textboxes or fields from xss
i have a form with textboxes, textarea, and other fields.
how do i filter from having a user enter html or javascript or any other markup besides addslashes ? |
htmlentities and the like
|
cool thnx
im wondering how to filter like myspace does for example if you do use it. if you edit your profile and enter javascript for example <script>alert(something);</script> and when you save your profile myspace outputs it like this: ..alert(something);.. it converts javascript markup to dots. |
PHP Code:
|
|
Or this glorious thing: HTML Purifier - Filter your HTML the standards-compliant way!
|
| All times are GMT. The time now is 03:26 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0