PHP / HTML / Everything as String without escaping

I needed html/php-text in my arduino project. It was very annoying to escape nearly everything with \.

After searching quiet a while I found a fast solution.

const char text[] PROGMEM = R“=====(
you can write everything in here! Like that:

=^.^=

or <html></html>

IT DOESN’T MATTER! „‚!=“)§(§/$&%&“/§$(„)=§

)=====“;

Isn’t it nice?

Write in the comments what you think and if there is a better way.

Kommentar verfassen