title: Unexpected token while passing data to a variable in jQuery
body: <p>It may seem a stupid question at first, I felt so. But when I'm passing a variable which contains data with line breaks (fetched from the database) to a AJAX request, it is showing 
  Uncaught SyntaxError: Invalid or unexpected token</p>
  
  <p>Here is my AJAX code:</p>
  
  <pre><code>$('#edit').on('click', function(){
    var post_content = '{{ $post-&gt;post_message }}';
    $.ajax({
      url: 'post/edit',
      data: {'postid': {{ $post-&gt;post_id }}, 'post_content': post_content },
      success: function(){
        alert('boom!');
      }
    });
    return false();
  });
  </code></pre>
  
  <p>I'm using laravel as a framework. </p>
  
  <p>I checked the developer console, and it is because of the line breaks contained in the data fetched from the database.</p>