Hi!
I have to print an html stuff which contains double quotes, how to do that in processing??
(I have searched in processing reference but there doesn’t say anything about that)
I have to print this text:
<?xml version="1.0" encoding="UTF-8"?>
Hi!
I have to print an html stuff which contains double quotes, how to do that in processing??
(I have searched in processing reference but there doesn’t say anything about that)
I have to print this text:
<?xml version="1.0" encoding="UTF-8"?>
Replace all "
w/ \"
:
static final String HTML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
void setup() {
println(HTML);
exit();
}
Replace all "
with
\"
Processing documentation touches on the subject of “escape sequences” here:
Oracle Java Documentation discusses “escape sequences”:
I had to use these in this example: