title: Replace every " with \" in Lua
body: <p><a href="http://xyproblem.info/" rel="nofollow noreferrer">X-Problem</a>: I want to dump an <em>entire</em> lua-script to a single string-line, which can be compiled into a C-Program afterwards.</p>
  
  <p><strong>Y-Problem</strong>: How can you replace every <code>"</code> with <code>\"</code> ?</p>
  
  <p>I think it makes sense to try something like this</p>
  
  <p><code>data = string.gsub(line, "c", "\c")</code>
  where c <em>is</em> the <code>"</code>-character. But this does not work of course.</p>