recognize special characters in typescript, for example: "\"?

0

Dear, I have a question, they send me a key from a service, for example: \ akdkKL * 0 I must use this key and return a value, the problem is that it does not recognize the character: "\"; I did this by sending values. How can I do it so that I can recognize and thus have no problems?

    
asked by joselo 30.10.2018 в 19:57
source

1 answer

0

Thank you all for your contributions, I could solve it by sending it with the following format:

String.raw'${variable_enviada}'

Thus I send the value and recognize all character.

    
answered by 03.11.2018 в 15:16