Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.
cleanurl
This function will clean the $url and prevents entities in server globals.

cleanurl

Quote

cleanurl ( string $url )


Return Values
This function will return the $url clean and ready for use XHTML strict and without any dangerous code.

Example
Code
<?php
echo cleanurl("http://www.test.com?this=that&that=this<&tagg>");
?>


Output

Quote

http://www.test.com?this=that&amp;amp;that=this&amp;amp;tagg


Notes
This function is used for the server globals so they are XHTML strict.


See also …


References

  • 1. ^ cleanurl by , retrieved 11/05/2014