movilizer

Movlet Failing if double quotes exists in string


I have a string with double quotes for example:

"Diagnosed with "Covid19 -Ve"

while rendering in MEL variable it's failing.

My string may contains multiple double quotes in future.

How to escape if string contains all the double quotes in entire string value at the end in MEL


Solution

  • you can escape the double quotes character using a backslash and then the double quotes. Just like this:

    myVariable = "Diagnosed with \"Covid19 -Ve" ;