public class Quotes extends Object
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.