title: pretty print JSON in <td> tags
body: <p>from my backend I receive a prettified JSON response (PHP, <code>json_encode($json, JSON_PRETTY_PRINT)</code>) which I need to show prettified in my table (on my page, in <code>&lt;td&gt;</code> tags, NOT in console). The problem is when I put it into <code>&lt;td&gt;</code> I get it unprettified (like on a screenshot):
  <a href="https://i.stack.imgur.com/fQ4FB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fQ4FB.png" alt="json image"></a></p>
  
  <p>I tried to put it into <code>&lt;pre&gt;</code> tags, or even used <code>JSON.Stringify()</code> but it did not work, the output does not look prettified. Any ideas how to fix this would be welcome. Thank you.</p>
  
  <p><strong>UPD_1</strong>
  Thats what I get when using <code>JSON.stringify(json, null, 2)</code>
  <a href="https://i.stack.imgur.com/W3Rky.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W3Rky.png" alt="enter image description here"></a></p>
  
  <p>If I try to <code>JSON.parse()</code> first, and then <code>JSON.tringify()</code>, nothing happens with my output, it is not prettified either</p>