Wraps a string value in quotes and escapes relevant characters.
(value: string)
| 28 | |
| 29 | /** Wraps a string value in quotes and escapes relevant characters. */ |
| 30 | static quoteAndEscape(value: string): string { |
| 31 | // Passing the value through `JSON.stringify` automatically |
| 32 | // escapes quotes and allows us to handle line breaks. |
| 33 | return JSON.stringify(value); |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * Converts the node's current state to a string. |
no outgoing calls
no test coverage detected