title: Php - print html tags as text
body: <p>I need to print an HTML tag on screen as texts (and not in code).</p>
  
  <p>I need the readers to literally read the tag.</p>
  
  <p>What is the best practice to do so ? </p>
  
  <pre><code>print htmlspecialchars('&lt;meta name="copyright" content="© Winston Smith, 1984"&gt;');
  </code></pre>
  
  <p>or</p>
  
  <pre><code>print htmlentities('&lt;meta name="copyright" content="© Winston Smith, 1984"&gt;');
  </code></pre>
  
  <p>or none of the above.</p>
  
  <ul>
  <li>Is there a better way?</li>
  <li>What else should I consider ?</li>
  <li>And last question - should I use print, echo or is there no
  difference ?</li>
  </ul>
  
  <p>*<strong><em>EDIT I</em>*</strong></p>
  
  <p>I already seen a problem with the character "©" with htmlentities().
  This only confirms my doubts - which one is safe to use for all cases - and is there another way to print html tags as text ?</p>