Language

Token.EscapeSpecialChatactersIfNeeded(Boolean, Boolean) Method

Definition

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

Returns

Applies to