I tried to learn the htmlentities,

PHP Code:
<?php
$str 
"A 'quote' is <i>bold</i>";

// Outputs: A 'quote' is &lt;b&gt;bold&lt;/b&gt;
echo htmlentities($str);
echo 
"<p>";

// Outputs: A 'quote' is &lt;b&gt;bold&lt;/b&gt;
echo htmlentities($strENT_QUOTES);
?>
But all I got/output is

Code:
A 'quote' is <i>bold</i>
A 'quote' is <i>bold</i>
Iam using php5, is there anything I should enable?