title: display content containing html tags from database using php
body: <p>Table name : Post, column name : content
  say, below data along with the html tag and style is stored in content column</p>
  
  <pre><code>&lt;h1 style="color:red"&gt;test&lt;/h1&gt;
  </code></pre>
  
  <p>I'm using below php code to display it</p>
  
  <pre><code>&lt;?php
  $sql = "SELECT content FROM post where id = 1";
  $result = $conn-&gt;query($sql);
  if ($result-&gt;num_rows &gt; 0) {
      // output data of each row
    while($row = $result-&gt;fetch_assoc()) {
  
      ?&gt;
      &lt;?php echo htmlspecialchars($row['content'], ENT_QUOTES); ?&gt;
      &lt;?php
    }
  }
  else {
  echo "0 rasdesults";
  }
  $conn-&gt;close();
  ?&gt;
  </code></pre>
  
  <p>expectation : test in red color but 
  output : only  "test"</p>