public class Quotes
extends java.lang.Object
| Constructor and Description |
|---|
Quotes() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
escape(java.lang.String toEscape)
Convert strings with both quotes and ticks into a valid xpath component
For example,
|
public static java.lang.String escape(java.lang.String toEscape)
foo will be converted to "foo",
f"oo will be converted to 'f"oo',
foo'"bar will be converted to concat("foo'", '"', "bar")
toEscape - a text to escape quotes in, e.g. "f'oo""\"f'oo\""