title: Is it possible to reverse escape string?
body: <p>I know both NetBeans and Eclipse has options where if you paste multi-line, un-escaped string into a string variable, it will automatically add escape characters and add line breaks in. Is there a way to reverse the process?</p>
  
  <p>For example: </p>
  
  <pre><code>function ShowHideOptions(trigger, element) {
   if( trigger ) {
      document.getElementById( element ).style.display = "";
   } else {
      document.getElementById( element ).style.display = "none";
   }
  }
  </code></pre>
  
  <p>if pasted in to string becomes:</p>
  
  <pre><code>private static final String LABEL_JAVASCRIPT = "function ShowHideOptions(trigger, element) {\n"
              + " if( trigger ) {\n"
              + "     document.getElementById( element ).style.display = \"\";\n"
              + " } else {\n"
              + "     document.getElementById( element ).style.display = \"none\";\n"
              + " }\n"
              + "}";
  </code></pre>
  
  <p>I want reverse this process.</p>