I want to display the first 110 characters of a database entry. This worked fine with my code:
<?php echo substr($row_get_Business['business_description'],0,110) . "..."; ?>
But the above entry has HTML code in it that's been entered by the client. So it displays:
<p class="Body1"><strong><span style="text-decoration: underline;">Ref no:</span></strong> 30001<strong></stro...
I want to strip out all html code and display the first 110 characters in between < and >. How can I do this?