CSC 341: The Week beginning Feb. 5 |
FILTER_VALIDATE_URL
to determine if the user has entered a correctly formed URL.
trim
function
(http://php.net/manual/en/function.trim.php)
as well as a
htmlspecialchars
(http://php.net/manual/en/function.htmlspecialchars.php).
strip_tags
(http://php.net/manual/en/function.strip-tags.php)
if you don't want the tags but still follow it up with an htmlspecialchars
.