Its role is to escape special XML characters in a string so the string can be used as simple text in an XML document.
它的角色是对字符串中的特殊xml字符进行转义,以便字符串可以用作XML文档中的简单文本。
Listing 11 shows an example of the escape sequences for a string that USES a single quote as an apostrophe.
清单11显示了一个转义字符串序列,它使用了一个引号作为省略号。
Optionally, you can pass a string to preg_quote() to automatically escape any regex operator it finds, as in line 1.
您可以随意将字符串传递给 preg_quote()来自动转义它找到的所有regex操作符,如第 1行所示。
For example, Sanitize: : escape (" o 'brien ") would return a string with the value o \ 'Brien.
例如,Sanitize:escape (“O'Brien ”)返回一个值为O \ ' Brien的字符串。
So don't expect any assistance from your PHP editor, and don't forget to escape that code string.
因此,不要期望从PHP编辑器获得帮助,而且不要忘了尽量避免使用该代码串。
This escape sequence tells Vim to treat the replacement text as a Vimscript expression, evaluating it to get the actual replacement string.
这个转义序列告诉Vim把替换文本作为一个Vimscript表达式来处理,对它进行评估来获取实际的替换字符串。
In this step, Abdera does some String manipulation to escape XML characters.
在这个步骤中,Abdera通过一些String操作来转义xml字符。
The escape method returns a string value (in Unicode format) that contains the contents of [the argument].
escape方法以Unicode格式返回一个包含传入参数内容的string类型的值。
The escape method accepts a string of any kind and returns a SQL safe version of the same string.
escape方法接受一个任意类型的字符串并返回相同字符串的SQL安全版本。
So, if I want to encode O'Reilly in a single quoted string, I must escape it using backslash, 'O\'Reilly'.
所以,如果我想用单引号编码O'Reilly,我就必须使用反斜杠对它进行转义:'O\'Reilly'。
Calling.r on a string turns it into a regular expression; we use raw (triple-quoted) strings here to avoid having to double-escape backslashes.
在一个字符串上调用。r会把它变成一个正则表达式;我们是用了原始(三重引号)字符串来避免诸多双重转义的反斜杠。
Inside SQL string literals, you generally only have to escape the characters which delimit the string literal as they are required to leave the string literal context.
在SQL字符串,你通常只能逃逸字符的字符串作为分隔他们被要求离开该字符串上下文。
In general, string escaping functions escape these characters as well as further, non-printable characters, if applicable.
在一般情况下,字符串转义的功能以及进一步摆脱这些字符,非打印字符,如适用。
However, if the escape sequence is applied to a member that has a type converter, the string might undergo type conversion when it is interpreted by a XAML writer.
但是,如果对具有类型转换器的成员使用转义序列,则仍有可能在由XAML编写器进行解释时,该字符串会被类型转换器转换。
Produces a string that can be written as an XML qualified name, with invalid characters replaced by escape sequences.
产生可写入成为XML限定名称的字串,并以逸出序列取代无效的字元。
When a script is compiled, each escape sequence in a string literal is converted into the characters it represents.
当编译脚本时,字符串中的每个转义序列都会转换为它所表示的字符。
When a script is compiled, each escape sequence in a string literal is converted into the characters it represents.
当编译脚本时,字符串中的每个转义序列都会转换为它所表示的字符。
应用推荐