public class Quotes extends Object
| Constructor and Description |
|---|
Quotes() |
| Modifier and Type | Method and Description |
|---|---|
static String |
escape(String toEscape)
Convert strings with both quotes and ticks into a valid xpath component
For example,
|
public static String escape(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\""Copyright © 2015. All rights reserved.