<?php if($product_details['description'] != "") { echo substr(strip_tags(html_entity_ decode($product_details[' description'])), 0, strrpos(substr(strip_tags( html_entity_decode($product_ details['description'])), 0, 100), ' ')) . "..."; } else{echo "N/A";} ?>