class XPathEscaper (View source)

Methods

static string
escapeQuotes(string $xpathToEscape)

Converts xpath strings with both quotes and ticks into: foo'"bar -> concat('foo', "'" ,'"bar')

Details

static string escapeQuotes(string $xpathToEscape)

Converts xpath strings with both quotes and ticks into: foo'"bar -> concat('foo', "'" ,'"bar')

Parameters

string $xpathToEscape

The xpath to be converted.

Return Value

string

The escaped string.