strip_tags()
removes any PHP or HTML tags from a string
nl2br()
converts newline characters in the input to HTML tags.
htmlspecialchars()
will entity-quote characters such as <, > and & remaining in the input after strip_tags() has run. This prevents them being misinterpreted as HTML and makes sure they are displayed properly in any output.
Remember For SQL Processing:
When entering data into a database,
addslashes()
will escape characters with a special meaning to SQL, such as ' or ; by prefixing them with a backslash (\)
Run stripslashes()
when pulling data back out from the database.
6 comments:
Greets to the webmaster of this wonderful site. Keep working. Thank you.
»
Hmm I love the idea behind this website, very unique.
»
Really amazing! Useful information. All the best.
»
Very best site. Keep working. Will return in the near future.
»
Greets to the webmaster of this wonderful site! Keep up the good work. Thanks.
»
I say briefly: Best! Useful information. Good job guys.
»
Post a Comment