WordPress uses HTML and PHP functions related to filtering links for parsing ,. The HTML function of WordPress is used for parsing and filtering links. the esc_html () (escape Html) esc_html () function is used to escape Html code, so that Html code
Describes how to filter links and SQL statements in WordPress ,. The method for filtering links and SQL statements in WordPress is described in detail. many URLs of esc_url () (filtering links) may have small errors. you can use the esc_url ()
WordPress Transit semantic HTML and filter links related to the use of PHP function parsing,
Esc_html () (escaped HTML)The esc_html () function is used to escape HTML code so that the HTML code is not escaped.
Usage
Esc_html
The method of filtering links and filtering SQL statements in WordPress,
Esc_url () (Filter link)Many URLs will have minor errors, using the Esc_url () function to block or correct these errors, and to reject unsafe protocols.
The work of the
: This article describes how to filter links and SQL statements in WordPress. For more information about PHP tutorials, see. Esc_url () (filter link)
Many URLs have small errors. Using the esc_url () function can block or correct these errors and
Esc_html () (escaped HTML)
The esc_html () function is used to escape HTML code so that the HTML code is not escaped.
Usage
Esc_html ($text);
Parameters
$text
(string) (must) the string to be escaped.
Default value: None
return value
Returns the
This article describes how to filter links and SQL statements in WordPress. it is mainly used to prevent insecure protocols and SQL injection attacks. For more information, see
Esc_url () (filter link)Many URLs have small errors. Using the esc_url ()
This WordPress function is usually used, especially when it is used to plug-ins or expand theme functions. I have written an article to note this and will use it later.This esc_url functionMainly used for URL filtering:1. Deny URLs that are not the
Esc_url () (Filter link)
Many URLs will have minor errors, using the Esc_url () function to block or correct these errors, and to reject unsafe protocols.
The work of the Esc_url () function is as follows:
Default deny is not url:defaulting to HTTP,
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.