fcc-Learning Note Convert HTML entities1> recently studied and practiced the FCC topics. This is really a good comparison, recommended to everyone.2> address of the Chinese version: https://www.freecodecamp.cn/, English version of the address: https:
PHP Html_entity_decode () applies to PHP 4.3.0+ and converts HTML entities into characters.
Html_entity_decode (string containing HTML entities, optional how to decode quotes, optional character encoding set)
If the string contains a character set
Converts characters in a string,,, & > " (double quotation marks), and ‘ (single quotation marks) to their corresponding HTML entities.If you get stuck, remember to open a big recruit read-search-ask. Try programming with others, writing your own
Mobile input allows input expression, the expression is actually UTF-16 encoding, in the database storage will be lost, currently if the database Loadline code modified to UTF8MB4 can also be saved.If you do not want to modify the others, you can
PHP Html_entity_decode () applies to PHP 4.3.0+, which converts HTML entities into characters.
Html_entity_decode (a string containing an HTML entity, optionally how to decode quotes, optional character encoding sets)
If the string contains a
Converts characters in a string,,, & > " (double quotation marks), and ‘ (single quotation marks) to their corresponding HTML entities.Correspondence Relationship:https://dev.w3.org/html5/html-author/charref1 functionCONVERT (str) {2 varobj = {3"&
Convert some of the predefined characters to HTML entities and precede predefined characters with backslashes, including single quotes, double quotes, backslashes, and NULL to secure the database
Convert some of the predefined characters to HTML
HTML entity symbols are used to implement reserved characters or to express some characters commonly used that cannot be entered by the keyboard. In most browsers, the default character set is Iso-8859-1. HTML entity Symbols We often use it in web
Htmlspecialchars () function to convert some of the predefined characters to HTML entities. The syntax is:htmlspecialchars(string, Quotestyle,character-set). 5.4. Version 0 began to change the default value of the third parameter string encoding of
Every day a variety of media objects are transmitted via HTTP, such as text, movies, and software programs. HTTP ensures that its messages are correctly transmitted, identified, extracted, and properly processed. To achieve these goals, HTTP uses a
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.