title: How to show html tags converted by PHP's htmlentities into div using jQuery?
body: <p>I have a dynamic string from PHP that I encoded using htmlentities() so I can pass it on AJAX using jQuery and JSON. Now I got something like</p>
  
  <pre><code>{ "error": "false", "html": "&amp;lt;div id=&amp;quot;user_add_title&amp;quot;&amp;gt;Adding New User&amp;lt;div class=&amp;quot;showhide-div&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;hideShowToggle&amp;quot; href=&amp;quot;#&amp;quot; onclick=&amp;quot;$('#account_title').show();$('#account').show();$('#users_container').html('')&amp;quot;&amp;gt;[cancel]&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;" }
  </code></pre>
  
  <p>and when I want to show it in an AJAX success callback function like:</p>
  
  <pre><code>success: function(json) {
      if(json.error == 'false')
          $("#users_container").html(json.html);
      else
          showMsg(json.msg);
  }
  </code></pre>
  
  <p>what's displayed in the  is the entities itself</p>
  
  <pre><code>&lt;div id="user_add_title"&gt;Adding New User&lt;div class="showhide-div"&gt;&lt;a class="hideShowToggle" href="#" onclick="$('#account_title').show();$('#account').show();$('#users_container').html('')"&gt;[cancel]&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>instead of being rendered by the browser.</p>
  
  <p>If I use html or text as dataType in my jQuery AJAX call, the tags are rendered properly. I want to use JSON because I need to catch if the process has an error or not.</p>