Forum Discussion
speechles
7 years agoRoku Guru
"bmbudai" wrote:
The problem is I don't know how to escape quotation marks in a string in BrightScript, so I have it json encoding the policy from an roAssociativeArray, and I guess that puts it into alphabetical order - breaking it.
You can use:
escaped_text = text.replace( chr(34), "\"+chr(34) )
or...
escaped_text = text.replace( chr(34), chr(27)+chr(34) )
depending on how you use the text depends on which method will work.