StringEscape escape string that may need characters escaped StringEscape("'","item's") => "item''s"
(quote rune, literal string)
| 204 | // StringEscape("'","item's") => "item''s" |
| 205 | // |
| 206 | func StringEscape(quote rune, literal string) string { |
| 207 | var buf bytes.Buffer |
| 208 | escapeQuote(&buf, quote, literal) |
| 209 | return buf.String() |
| 210 | } |
| 211 | |
| 212 | // StringUnEscape remove escaping on string that may need characters escaped |
| 213 | // |
no test coverage detected