I have long strings in json, imported via Ajax. Iwant to have characters in the string to control the formatting, specifically linebreaks.
My approach atm:
Go through the array that I imported to and Replace the formatting character with the expression &newline&.
But of course I need to have quotes around the expression to interrupt the string and it to work as an expression.
how do I interrupt a string with expressions, including the quotes before and after?
Tokenize your string by the newline character (in the image above I use \n); iterate through to tokenization to concat it back up with &newline at the end of each iteration.
Develop games in your browser. Powerful, performant & highly capable.
faulknermano Rad stuff! thanks