title: Scala: Replace newline, tab and return sequences from string
body: <p>I have a string of HTML that I'm copy pasting into a String object that looks something like the following:</p>
  
  <pre><code>val s = """&lt;body&gt;
     &lt;p&gt;This is a test&lt;/p&gt;  &lt;p&gt;This is a test 2&lt;/p&gt;
   &lt;/body"""
  </code></pre>
  
  <p>The problem here is, when I display this string as JSON within the context of a web browser, the output displays literal <code>\n</code> and <code>\t</code> characters to the tune of something like this:</p>
  
  <pre><code>"&lt;body&gt;\n &lt;p&gt;This is a test&lt;/p&gt;\t &lt;p&gt;This is a test 2&lt;/p&gt;\n&lt;/body&gt;"
  </code></pre>
  
  <p>Is it possible to perhaps strip all of these escaped sequences from my strings output in Scala?</p>