title: php json_decode removing html tags
body: <p>I am using php json_decode to parse API response and then json_encode to send response to client.</p>
  
  <p>In a third party API call I am getting JSON response in which there is a key with value having html tags and html contents. When I print that data I can see those tags, but after json_decode, I can not see those tags, so that I am unable to keep those tags intact. I want that html content to go to database as it is [without any change at all].</p>
  
  <p><code>$result = curlGetWithHeaders("API URL", "Parameters for that URL");</code></p>
  
  <p><code>$data = json_decode($result);</code></p>
  
  <p>So in <code>$result</code> I can see html tags but not in <code>$data</code>. 
  And <code>var_dump($data)</code> says that it is <code>string</code>.</p>
  
  <p>Response is = 
  <code>{"array":{"id":1,"title":"Title","short_title":"abcd","description":"&lt;ul&gt;&lt;li&gt;0&lt;/li&gt;&lt;li&gt;A&lt;/li&gt;&lt;li&gt;B&lt;/li&gt;&lt;li&gt;C&lt;/li&gt;&lt;li&gt;D&lt;/li&gt;"}}</code></p>
  
  <p>and after using <code>json_decode</code> I am getting description as pasred html.</p>
  
  <p><code>deals] =&gt; Array
          (
              [0] =&gt; stdClass Object
                  (
                      [deal] =&gt; stdClass Object
                          (
                              [id] =&gt; 1
                              [title] =&gt; title
                              [short_title] =&gt; abcd
                              [description] =&gt; 0
  • A
  • B
  • C
  </code></p>