title: How to use htmlentities with substring
body: <p>Can anyone explain why this substr is not working ? What am I missing ?</p>
  
  <pre><code>&lt;?= substr(htmlentities($movie-&gt;movie_name) , 0 , 10) ?&gt;
  </code></pre>