Token.EscapeSpecialChatactersIfNeeded(Boolean, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
XPath doesn't have any good support for escape. The best way to do this is to concatenate the character e.g. a'b becomes concat('a', "'", 'b') a"b becomes concat("a", '"', "b") Because we also do our own parsing on top of XPath parsing having single quotes and double quotes in our parser can be a problem We optionally replace the expressions "'" and '"' with tokens that we can change back
public virtual string EscapeSpecialChatactersIfNeeded(bool UseSingleQuoteChar = true, bool replaceSpecialCharsWithToken = true);
abstract member EscapeSpecialChatactersIfNeeded : bool * bool -> string
override this.EscapeSpecialChatactersIfNeeded : bool * bool -> string
Public Overridable Function EscapeSpecialChatactersIfNeeded (Optional UseSingleQuoteChar As Boolean = true, Optional replaceSpecialCharsWithToken As Boolean = true) As String
Parameters
- UseSingleQuoteChar
- Boolean
- replaceSpecialCharsWithToken
- Boolean