title: How to echo a json multiline string in php
body: <p>I am writing a JSON file inside javascript. I want to echo/display $myJson['customer_details']['xml'] just as it is. How can i echo the value of 'xml' though it is multiline string?
  <br><br>
  Here's the console error btw (Uncaught SyntaxError: Invalid or unexpected token)</p>
  
  <pre><code>$myJson = {  
         "customer_details" : {  
            "text" : "Customer Details",
            "xml" : "&lt;?xml version="1.0"?&gt; 
                     &lt;customer-details&gt; 
                       &lt;info&gt;&lt;/info&gt;
                     &lt;/customer-details&gt;"
         },
         "car_details" : {  
            "text" : "Car Details",
            "xml" : "&lt;another-xml-here&gt;&lt;/another-xml-here&gt;"
         }
      }
  </code></pre>
  
  <p>Image: <a href="https://i.stack.imgur.com/yz9Ra.jpg" rel="nofollow noreferrer">Here's the screenshot</a></p>