title: How to handle new line character in FB-api via twig
body: <p>I am currently working on symfony2 framework. In one of my twig file</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>FB.api(
      "/" + p_id + "/feed",
      "POST",
      {
      "message": "{{ des| replace({"\n":' ', "\r":' '}) }}",
      "description": "{{ des| replace({"\n":' ', "\r":' '}) }}",
      "access_token": p_accessToken
      },
       function (response) {  
          if (response &amp;&amp; !response.error) {
          /* handle the result */
          console.log("posting");
          console.log(JSON.stringify(response));
          }
          else {
            console.log(JSON.stringify(response));
             alert(response.error.error_user_msg);
            }
         }
        );</code></pre>
  </div>
  </div>
  
   I want to replace "\n" such that facebook treat this as a new line character.</p>
  
  <p>If I leave as it is than it render something like this:</p>
  
  <p>"message": "first line</p>
  
  <p>So, it gives error and not considering second line.</p>
  
  <p>How to resolve this problem??</p>