(str: string)
| 165 | |
| 166 | // Encodes the specified string by replacing all \" \' ; : with _<num> |
| 167 | const encode = (str: string): string => { |
| 168 | isEncoded = true; |
| 169 | |
| 170 | return encodingLookup[str]; |
| 171 | }; |
| 172 | |
| 173 | // Decodes the specified string by replacing all _<num> with it's original value \" \' etc |
| 174 | // It will also decode the \" \' if keepSlashes is set to false or omitted |
no outgoing calls
no test coverage detected
searching dependent graphs…