Verified Commit bd7b13c0 authored by João Capucho's avatar João Capucho
Browse files

Fix escaping in text blocks

parent 38e21dcb
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@ export class BlocklyJavaService {
      // TODO: This is a quick hack.  Replace with goog.string.quote
      s = s.replace(/\\/g, '\\\\')
        .replace(/\n/g, '\\\n')
        .replace(/'/g, '\\\'');
        .replace(/"/g, '\\"');
      return '"' + s + '"';
    };