/**
* Character filtering
* $santype 1: Stripped of HTML, XML, and PHP tags,
* 2: Peel HTML, XML, and PHP tags, convert characters to HTML entities, encode double quotes and single quotes
* 3: Strip HTML, XML, and PHP tags, add backslash single
This example is briefly described in the previous article.
OK, let's start with the login page of the first page.
Or look at the interface
How do you really want to guide it in the end is how to achieve it? OK, let's look at the code:
1
2
Sometimes some online and offline things may have different paths. it will be similar to writing {code ...} but I am thinking, sometimes it is necessary to make the website static. is this method not applicable? If the web page must be static, how
Remember before during the training, the instructor told us that the end tag of PHP?> can not be added, and it is best not to add, said in some cases is necessary (forget what is the case)
What do you think of Daniel?
[PS: Of course, in the case of
The day before yesterday, tianyuan made a batch modification to the content of his blog post. Due to bugs in the source program, many backslashes in the path or code were removed. This problem was discovered only yesterday when bankw3000 posted a
The phpstrip_tags () function is a string function that removes HTML, XML, and PHP tags from strings. Then return the string after the tag is removed. This article collects several articles about the phpstrip_tags () function, hoping to help you
The PHP strip_tags () function is one of the string functions that removes HTML, XML, and PHP tags from the string. Then return the string after removing the tag, this article collects a few articles about PHP strip_tags () function, hope to
The day before yesterday, Tianyuan made a batch modification to the content of his blog post. due to bugs in the source program, many backslashes in the path or code were removed. this problem was discovered only yesterday when bankw3000 posted a
The PHP strip_tags () function is one of the string functions that removes HTML, XML, and PHP tags from the string. Then return the string after removing the tag, this article collects a few articles about PHP strip_tags () function, hope to
This article mainly introduces the native function of php to remove html tags. for details, refer to strip_tags to remove HTML and PHP tags. Syntax: string strip_tags (string str); return value: string function type: data processing content
This article mainly introduces the native function of php to remove html tags. for details, refer to strip_tags to remove HTML and PHP tags. Syntax: string strip_tags (string str); return value: string function type: data processing content
PHP function Strip_tags provides the ability to remove HTML and PHP tags from a string, which attempts to return the result of the given string str after removing null characters, HTML, and PHP tags.
Because Strip_tags () cannot actually validate
Strip_tags get rid of HTML and PHP tags. Syntax: string strip_tags (String str); Return value: String function type: Data processing content Description This function can remove any HTML and PHP tag strings contained in the string. If the HTML of
Function: remove HTML and PHP tags. Syntax: stringstrip_tags (stringstr); return value: string
1. strip_tags
Function: remove HTML and PHP tags.
Syntax: string strip_tags (string str );
Return value: string
Note: This function removes any HTML and
In the Web development process, we often have to get data from users from all over the world. However, we "can never trust the data entered by those users." Therefore, in a variety of web development languages, will provide a guarantee of user input
/*** Character filtering* $ Santype 1: Remove HTML, XML, and PHP tags,* 2: Remove HTML, XML, and PHP tags, convert characters into HTML entities, encode double quotation marks and single quotation marks* 3: Remove tags in HTML, XML, and PHP. Add a
Php removes the html tag -- the difference between strip_tags and htmlspecialchars. Strip_tags removes HTML and PHP tags. Syntax: stringstrip_tags (stringstr); return value: string function type: data processing content description this function can
PHP summarizes the handling methods for special characters in Form submission, mainly involving htmlspecialchars, addslashes, stripslashes, strip_tags, mysql_real_escape_string, and other functions for joint use.
I. Several PHP functions related to
1, Strip_tags
Function: Remove HTML and PHP tags.
Syntax: string strip_tags (String str);
return value: String
Description: This function can remove any HTML and PHP tags contained in the string. If the HTML and PHP tags of the string are wrong, for
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.