Apostrophe not detected while conversion into smarty html

instead of right single quote &rsquo; it is taking apostrophe &#39;