How to get formatted String from Psielement.text
Answered
Please consider this case. Let's say a I am reading String variables in my class
val a = "[{\n" + " \"lorem\": \"ipsum lorem(\$lorem: Int!,\$ipsum: Int!) {\n" + ""
Now in actual code the value in a will be like this (This is the actual value present in a)
[{
"lorem": "ipsum lorem($lorem: Int!,$ipsum: Int!) {
But PsiElement.text is giving me Raw-Text. How can i get the actual formatted value of a ?
"[{\n" + " \"lorem\": \"ipsum lorem(\$lorem: Int!,\$ipsum: Int!) {\n" + ""
Please sign in to leave a comment.
Please explain what "actual formatted value of a" means exactly? What is expected result?