diff --git a/web/skins/classic/js/skin.js.php b/web/skins/classic/js/skin.js.php index 2d443fbe1..52beb07ce 100644 --- a/web/skins/classic/js/skin.js.php +++ b/web/skins/classic/js/skin.js.php @@ -109,7 +109,9 @@ stateStrings[STATE_TAPE] = ""; $c) { - if (!$c['Private']) - echo 'const '. $name . ' = \''.$c['Value'].'\''.PHP_EOL; + if (!$c['Private']) { + + echo 'const '. $name . ' = \''.preg_replace('/(\n\r?)/', '\$1', $c['Value']).'\''.PHP_EOL; + } } ?>