When we write JavaScript scripts, we may want HTML documents to display or use certain special characters (such as quotes or slashes). (For example: ) but as mentioned earlier, when declaring a string, it must be enclosed in quotation marks. As a
HTML Escape Character Table, html Escape charactersWhy use an escape string?
, & And so on in HTML have special meanings (, used for the link sign, & used for escaping), and cannot be used directly. These symbols areNot displayed on the page we
The escape character in the Java language and the expression of the escape character in the regular syntax in the Java string.There are 14 escape characters in ASCLL:
\o
Null character (NULL)
00h/0
\ n
Line
In JavaScript, there are two places where backslash escape sequences are used, one in string literals and one in regular literals. In the string literal, the backslash escape sequence is divided into the following forms:1. \ followed by single
Escape-related characters include:. * + () $ /\? [] ^ {}, Which must be escaped when searching for these characters separately.
1. jsp --> if a special character (\/.) and other symbols need to be escaped in action, you can use escape (...)
2.
More comprehensive HTML entity escape character article: http://www.cnblogs.com/kiter/archive/2011/08/05/2128309.html
the composition of the escape string
The Escape string (Escape Sequence), that is, the character entity (Character Entity) is
In PHP, there are two functions related to the escape of strings: addslashes and stripslashes.
Addslashes ($ string), which is used to add a backslash (\) before a specified predefined character to prepare a suitable string for the string stored in
Select title:Fill in the blanks questions:Question and Answer question:1. What is JavaScript? (This is the basic problem, for many programmers is also send sub-problem!) )JavaScript is a client and server-side scripting language that can be inserted
A regular expression, which is an object that describes the character pattern. The RegExp class for JavaScript represents regular expressions, and both string and RegExp define methods, which use regular expressions for powerful pattern matching and
From: http://student.csdn.net/space.php? Uid = 45106 & Do = Blog & view = me
Chapter 2 Some of the essential JavaScript features bring much more trouble than they do. Some of these features may cause portability problems due to imperfect
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.